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.
| Sequence | Character | Name |
|---|---|---|
\n | LF (0x0A) | Line feed |
\r | CR (0x0D) | Carriage return |
\t | TAB (0x09) | Horizontal tab |
\b | BS (0x08) | Backspace |
\f | FF (0x0C) | Form feed |
\v | VT (0x0B) | Vertical tab |
\0 | NUL (0x00) | Null |
\a | BEL (0x07) | Bell |
\e | ESC (0x1B) | Escape (non-standard, common) |
\\ | \ | Backslash |
\" \' | " ' | Quotes |
\xHH | any byte | Hex byte |
\uHHHH | any BMP char | Unicode code unit |
\u{HHHHHH} | any char | Unicode code point (ES6) |
\NNN | any byte | Octal (optional) |