Code · Made a little simpler
Escape Sequence Converter
Encode text as escaped Unicode or file bytes as hex escapes. Decode newline, quote, backslash and Unicode escapes locally, then copy or save the result.
Unicode and hex byte escape guide
Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Escape Sequence Converter: how to use it
- Choose Unicode text escapes for characters or Hex byte escapes for binary. Select Encode or Decode.
- Run the conversion and inspect the byte count and available text preview.
- Copy the complete text or download the result to check its contents.
Limits and notes
Up to 12 MiB of original or decoded bytes. Pasted text and encoded files use UTF-8. The preview shows up to 8,192 characters. Downloads contain the complete result.
How your privacy works →Escape Sequence Converter: common questions
Which text escapes can I decode?
The text reader accepts common JSON escapes, escaped single quotes, two-digit hex escapes, four-digit Unicode escapes and braced Unicode code points.
Can I use this with arbitrary binary files?
Choose Hex byte escapes. It writes one backslash-x escape per byte and accepts those escapes when restoring the file.