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.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Escape Sequence Converter: how to use it

  1. Choose Unicode text escapes for characters or Hex byte escapes for binary. Select Encode or Decode.
  2. Run the conversion and inspect the byte count and available text preview.
  3. 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.

Guides