String Unescape

Convert escaped string-literal content such as \n, \t, \\, \x41, and \u0041 back into readable text.

String Unescape tool

Supports \\n, \\r, \\t, \\b, \\f, \\\\, \\', \\", \\xHH, \\uXXXX, and \\u{...}.

Result will appear here.
Metric Value

Privacy: unescaping runs locally in your browser. No text is stored or transmitted.

This tool decodes common programming-style escape sequences back into literal text characters. It can also decode wrapped string-literal input such as "hello\\nworld".

Examples

  • \n → actual line break
  • \t → actual tab
  • \x41 or \u0041A

FAQ

  • What does string unescape do?

    It converts common escape sequences such as \n, \t, \\, \", \', \xHH, and \uXXXX back into regular characters.

  • Does it support wrapped string literals?

    Yes. If the input is wrapped in matching single or double quotes, the wrapper can be removed during unescaping.

  • What happens with invalid escape sequences?

    The tool shows a validation error instead of silently producing ambiguous output.

  • Is my text stored?

    No. Unescaping runs locally in your browser and nothing is stored or transmitted.

Related tools