Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

Unescape JSON

Unescape JSON string sequences. Convert \n to newlines, \t to tabs, \" to quotes. 100% client-side.

Your files never leave your browser
Escaped Input0 chars, 0 lines
Unescaped Output0 chars, 0 lines
Error:
    Ready·

    Paste escaped JSON full of \\n, \\t, \\", and \\uXXXX sequences, hit Unescape, and get back the actual characters—real newlines, real tabs, real quotes. One click instead of a dozen find-and-replace passes. And everything runs in your browser. Nothing gets uploaded.

    How It Works

    Paste Escaped Text
    →
    Parse Escape Sequences
    →
    Clean Output

    The tool scans your input character by character, looking for backslash-prefixed sequences. When it finds \\n, it swaps in a real line break. Same goes for \\t (tab), \\" (quote), \\\\ (literal backslash), and the rest of the JSON spec escapes. Unicode sequences like \\u0041 get decoded to the actual character — in that case, the letter “A”.

    Examples

    API Response with Embedded Newlines

    You grabbed a JSON error message from a REST endpoint and need to read the stack trace.

    INPUT
    Error at line 42\\nNull reference\\nStack: main.go:12
    OUTPUT
    Error at line 42 Null reference Stack: main.go:12

    Config File with Tabs and Quotes

    A stringified config blob from a database dump. Tabs separate key-value pairs, quotes wrap some values.

    INPUT
    host\\t\\"db.prod.internal\\"\\nport\\t5432\\nssl\\ttrue
    OUTPUT
    host “db.prod.internal” port 5432 ssl true

    Unicode Escape Sequences in User Data

    An export from a multilingual app where accented characters and symbols got escaped during serialization.

    INPUT
    Caf\\u00E9 \\u2014 R\\u00E9sum\\u00E9 for Jos\\u00E9
    OUTPUT
    Café — Résumé for José

    Who Uses This

    👨‍💻 Backend Developers

    Reading escaped strings from API logs and database exports without manually fixing each backslash.

    🔍 QA Engineers

    Inspecting escaped JSON payloads in test results to verify that response bodies contain the right content.

    📊 Data Analysts

    Cleaning up escaped text columns from CSV or JSON data dumps before running analysis scripts.

    🛠️ DevOps Engineers

    Debugging escaped config strings pulled from environment variables or secret managers.

    Common Mistakes

    Double-escaping the input

    If your string has \\\\n instead of \\n, it means the text was escaped twice. Run the tool once to get \\n, then run it again to get the actual newline.

    Including the outer quotes from a JSON string

    Pasting "Hello\\nWorld" with the wrapping double quotes? The tool unescapes everything, but those outer quotes stay. Strip them first if you only want the inner value — or use the Unstringify JSON tool instead.

    Expecting JSON validation

    This tool does not check if your input is valid JSON. It just finds escape sequences and replaces them. Broken syntax will pass through without any warning. For validation, use a JSON validator separately.

    Technical Details

    Frequently Asked Questions

    What does unescaping JSON actually do?

    It converts escape sequences back into real characters. So \\n becomes a line break, \\t becomes a tab character, and \\" becomes a plain double quote. Think of it as reversing the escaping that happened when the string was encoded.

    What’s the difference between unescape and unstringify?

    Unescaping swaps out escape sequences for their actual characters — that’s it. Unstringifying goes a step further: it strips the surrounding double quotes from a JSON-encoded string, then unescapes the contents. If your string still has wrapping quotes and you want those gone too, unstringify is what you want.

    How do I unescape JSON in JavaScript?

    If the value is a proper JSON string (with surrounding quotes), use JSON.parse(yourString). That handles all escape sequences at once. For raw text without quotes, you’d need to write your own replacements for each sequence — or just paste it in here.

    Does this tool handle Unicode escape sequences?

    Yes. Any \\uXXXX pattern (four hex digits after \\u) gets converted to the matching Unicode character. For example, \\u00E9 turns into “é” and \\u2014 becomes an em dash. Works for any character in the Basic Multilingual Plane.

    Is my data safe when using this tool?

    Your text never leaves the browser. The entire conversion happens in JavaScript on your device — no server requests, no data storage, no cookies. Close the tab and it’s gone.

    Share: