What Length-prefixed String Tool does
Encode UTF-8 text with a 1-, 2-, or 4-byte length prefix or decode a payload whose declared byte length exactly matches the remaining bytes.
Input and output contract
Length prefixes can be little-endian or big-endian and store the UTF-8 byte count, not the character count. Prefixed hex bytes or decoded UTF-8 text.
Safe workflow
Choose width, byte order, and direction, then enter text or full prefixed bytes. SaveEditor processes this operation locally in the browser and does not infer a game format from the input.
Important limitations
The Tool does not implement variable-length prefixes or formats where the length includes the prefix itself. Trailing bytes beyond the declared string are rejected so a larger structure is not accidentally truncated.