Text Escape Converter

← All tools

Convert escape sequences to real characters and back. Handy for text copied out of Claude Code, JSON logs, or shell output where newlines and tabs show up as literal \n / \t.

Escaped input
Decoded output
Supported escape sequences
SequenceCharacterName
\nLF (0x0A)Line feed
\rCR (0x0D)Carriage return
\tTAB (0x09)Horizontal tab
\bBS (0x08)Backspace
\fFF (0x0C)Form feed
\vVT (0x0B)Vertical tab
\0NUL (0x00)Null
\aBEL (0x07)Bell
\eESC (0x1B)Escape (non-standard, common)
\\\Backslash
\" \'" 'Quotes
\xHHany byteHex byte
\uHHHHany BMP charUnicode code unit
\u{HHHHHH}any charUnicode code point (ES6)
\NNNany byteOctal (optional)
Copied