JSON Escape

Escape quotes and control characters for embedding in JSON.

Tool Panel

Processed locally
Loading tool...
About JSON Escape

Escapes or unescapes the quotes, backslashes and control characters inside JSON strings.

  • 1

    Two directions: text into the escaped form used inside a JSON string literal (quotes become `\"`, backslashes double, newlines become `\n`, tabs become `\t`) and back again.

  • 2

    Neither input nor output includes the surrounding quotes: you paste what goes **inside** the string and get the same shape back, ready for a JSON value or for turning a log line into readable text.

  • 3

    The unescape direction follows the JSON rules strictly and reports invalid escapes rather than guessing (fixed 2026-09-20: it used to reject the most common input, `say \"hi\"`, while silently accepting the invalid `a "b" c`).

Related tools

View all
Utilities

Random Number

Generate one or many random numbers within a range.

Utilities
Utilities

Random Picker

Pick a random winner from your own list.

Utilities
Utilities

Dice Roller

Roll one or more dice and read the total.

Utilities
Utilities

Rock Paper Scissors

Play a quick round of rock, paper, scissors.

Utilities

Countdown Timer

Run a countdown timer with an alert when it ends.

Utilities

Password Generator

Generate strong random passwords to your own rules.

Utilities

Password Strength

Judge how long a password would take to crack.