DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeJSONJSON Unescape String

Example: JSON Unescape String

A worked example, rendered from real sample data. Sign in to run the tool on your own input.

Input
"She said, \"Hello\n\tworld!\""
Output
She said, "Hello
	world!"

About JSON Unescape String

JSON Unescape String preview - JSON tool

Reverse JSON escape sequences back to raw text. Part of the DevTools Surf developer suite. Browse more tools in the JSON collection.

Use Cases

  • Backend developers debugging double-encoded JSON strings in API responses
  • Frontend devs extracting readable text from escaped JSON log entries
  • Data engineers cleaning JSON string fields before loading into databases
  • QA testers verifying that API responses contain correctly escaped content

Tips

  • Paste a JSON-escaped string to get the raw text with real newlines and quotes
  • Handles \n, \t, \", and Unicode escapes like \u00e9 automatically
  • Use it to read double-encoded JSON strings from API responses

Fun Facts

  • JSON requires only 4 characters to be escaped in strings: backslash, double quote, and control characters U+0000 through U+001F. Forward slash escaping is optional.
  • The \uXXXX escape sequence in JSON uses UTF-16 encoding — characters outside the Basic Multilingual Plane (like emojis) need surrogate pairs: two \uXXXX sequences.
  • Douglas Crockford discovered JSON in 2001 by observing that JavaScript object literal syntax could serve as a data interchange format — he 'found' it rather than invented it.

FAQ

When would I unescape a JSON string?
When you've got a log entry where someone logged the JSON payload as a stringified value, or a Terraform output that wrapped JSON in quotes. Unescape gives you back the original JSON.
Does it validate the output?
Yes — if the unescaped result isn't valid JSON, you'll get a warning. The unescape runs even on invalid input so you can inspect partial output.
What if the input has nested escapes?
The tool unescapes one level at a time. Run it twice for doubly-stringified input — common when a log line was re-serialized on the way out.
Is this the same as URL decode?
No. URL decode handles %XX percent-encoding; JSON unescape handles \n, \uXXXX, and \" backslash-escapes. Different encoding schemes for different contexts.

Related JSON Tools

JSON FormatterJSON ValidatorJSON ViewerJSON StringifyJSON PatchJSON DiffJSONPath TesterJSON Sort Keys
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback