ToolHub

String Escape / Unescape

Escape special characters like newlines, tabs, quotes, and backslashes into escape sequences—or reverse it. Handy for embedding text in code. Everything runs in your browser.

Input
Output

FAQ

Is my text sent to a server?

No. Everything runs entirely in your browser and no text leaves your device.

Which characters are escaped?

Newline (\n), tab (\t), carriage return (\r), double quote (\"), backslash (\\), and other characters that break code strings.

Does it decode Unicode escapes?

Yes. In unescape mode, sequences like \u0041 or \x41 are turned back into actual characters.

Related tools