Convert JSON escape sequences back to readable text

Decode JSON string escape sequences into their represented characters.

freeworks offlinenothing uploaded
ToolJSON Unescape
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

JSON string escape sequences are parsed into their represented characters, including quote, reverse solidus, control escapes, and Unicode surrogate pairs. The decoder processes JSON string syntax only and does not evaluate JavaScript or HTML escapes.

  • JSON defines a small escape grammar while retaining UTF-8 text.

Worked example

Unescape JSON String
Convert JSON escape sequences back to readable text
Input
											Hello\nWorld\t\"quoted\"
										
Output
												Hello
World	"quoted"
											

When to use this

API inspection, log fixtures, and serialized-data migrations decode JSON strings.

Edge cases

  • A raw control character is invalid even if it appears visually harmless.
  • A lone surrogate escape is not a Unicode scalar value.
  • Backslash-u escapes are not interpreted recursively after one decode.

References