PB
Available
code
lock Free · Private · In-Browser

JSON String Escaper

Escape text into a JSON string, or unescape it back to raw.

Escape text for JSON safely

Embedding text inside JSON means escaping the characters that would otherwise break it — quotes, backslashes, newlines, and tabs. This tool does it both ways, correctly.

Escape turns raw text into a ready-to-paste JSON string literal, quotes included. Unescape takes such a literal and resolves it back to the original text. It is the reliable way to move text in and out of JSON.

Correct and private

Escaping runs in your browser, so your text is never uploaded.

Frequently Asked Questions

What does escaping do?

It turns raw text into a valid JSON string literal, adding quotes and backslash-escaping characters like quotes, newlines, and tabs.

What does unescaping do?

It parses a JSON string literal back into the raw text it represents, resolving all escape sequences.

When do I need this?

Whenever you embed text inside JSON, a config file, or a code string and need the special characters handled correctly.

Take it further
All Free Tools

Browse the full set of free, private, in-browser tools.

Learn More arrow_forward