JSON Escape
Escape special characters to create valid JSON strings. Paste your text below and get escaped output instantly.
- 100% client-side, nothing uploaded
- Instant results
- Works offline once loaded
Empty
Empty
How it works
About this tool
This free online JSON escape tool converts plain text into a safely escaped JSON string body. Quotes, backslashes, tabs, and newlines become their JSON escape sequences so you can drop the result into a string field without breaking the document.
Paste text on the left — including multi-line snippets, log lines, and Windows paths — and the escaped output appears on the right as you type. Copy or download the result when you are done.
Escape encodes the characters inside a JSON string. If you already have a full JSON document and need a quoted string literal of the whole value, use the JSON Stringify tool instead.
Escape runs entirely client-side. Nothing is uploaded, which makes the tool safe for passwords, tokens, and other sensitive strings.
JSON Toolbox processes all data locally in the browser. Nothing is uploaded to a server.
Common questions
Frequently asked questions
How do I escape JSON online?
Which characters are escaped?
Do I need valid JSON as input?
Is escaping done in the browser?
Keep exploring
More JSON tools
- JSON CompareSide-by-side semantic JSON diff by path.
- JSON ValidatorCatch invalid JSON with exact line and column.
- JSON BeautifierPretty-print JSON with indent control and optional key sorting.
- JSON FormatterFormat messy JSON with 2-space, 4-space, or tabs.
- JSON MinifierStrip whitespace.
- JSON StringifyTurn JSON into an escaped string literal ready for code or config.
- JSON UnescapeDecode escaped JSON strings — or flip to escape mode.
- JSON Path FinderQuery JSON with JSONPath.