String Escape Tool

Escapes quotes, newlines, tabs, and backslashes for use in a string literal, or unescapes them back to their raw characters — the direction is detected automatically from your input. Runs entirely in your browser — nothing is sent to a server.

Ad placeholder: Resp_Horizantal_1 (horizontal)
Ad placeholder: Resp_Square_1 (square)

Escapes quotes, newlines, tabs, and backslashes for use in a string literal, or unescapes them back to their raw characters — the direction is detected automatically from your input. Runs entirely in your browser — nothing is sent to a server.

Use cases

  • Turning multi-line text into a single-line string literal for code
  • Converting an escaped string from a log file back to readable text

Examples

Escaping a quoted, multi-line string

hello "world"
line2
hello \"world\"\nline2

FAQ

Is my data sent to a server?

No — this tool runs entirely in your browser.