Diese Seite ist noch nicht auf Deutsch verfügbar, daher zeigen wir die englische Version.

JSON Escape & Unescape — String Encoder

Make any text safe to paste into a JSON string — quotes, backslashes, newlines and Unicode — or turn an escaped string back into readable text or JSON.

Aktualisiert am

Deine Daten verlassen nie deinen Computer. Die Verarbeitung erfolgt zu 100 % lokal im Browser.

So nutzt du: JSON Escape & Unescape

  1. Choose a mode: escape or unescape text, or convert between a JSON document and an escaped string.
  2. Paste the input; the output updates instantly.
  3. Use Reverse to run the opposite conversion on the result.

Which characters must be escaped in JSON?

CharacterEscape
Double quote "\"
Backslash \\\
Newline, carriage return, tab\n, \r, \t
Backspace, form feed\b, \f
Other control characters (U+0000–U+001F)\u0000–\u001f

Everything else, including emoji and accented letters, is allowed as-is in UTF-8 JSON. Tick ASCII only to write non-ASCII characters as \uXXXX for systems that cannot handle UTF-8. The forward slash may optionally be escaped as \/, which some servers do to keep </script> out of inline JSON.

JSON inside JSON

Some APIs and message queues carry a JSON document as a string field — for example an SQS message body or a webhook payload. JSON → string produces that double-encoded form; String → JSON removes one layer of escaping and pretty-prints the inner document, which is the quickest fix for the dreaded "{\"id\":1}" in logs.

In code

JSON.stringify(text)      // escape (JavaScript)
JSON.parse(escaped)       // unescape
json.dumps(text)          # Python
json.loads(escaped)

Need URL or HTML escaping instead? Use the URL encoder or HTML entity encoder.

Auch gesucht als: json escape, json unescape, escape json string, json stringify online, unescape json, json string encoder, remove backslashes json.

Passende Tools zu: JSON Escape & Unescape

  • JSON Formatierer — Füge JSON ein, um es zu formatieren, zu minifizieren oder zu prüfen.
  • Base64-Kodierung / -Dekodierung — Konvertiere Text in Base64 und zurück – mit vollständiger UTF-8-Unterstützung (Akzente, Emojis), wechsle zu URL-sicheren Base64-Werten oder zieh eine Datei per Drag & Drop hinein, um deren Base64-Zeichenkette oder Daten-URI zu erhalten.
  • JSON Diff — Find exactly what changed between two JSON documents — API responses, config versions, fixtures or exports — as a list of paths with old and new values.
  • JSON Schema Validator — Paste a schema and some JSON to see exactly which values break which rule — or generate a starting schema from example data.

Häufige Fragen

How do I remove backslashes from a JSON string?
Choose Unescape text (or String → JSON if the string contains a JSON document). Escape sequences such as \" and \n are turned back into the real characters.
Do I need to escape single quotes?
No. JSON strings use double quotes, so single quotes are valid as-is.
Is my text uploaded?
No. Everything runs in your browser.
Kann ich JSON Escape & Unescape als Web-App installieren und offline nutzen?
Ja. JSON Escape & Unescape ist eine installierbare Web-App (PWA) – sie wird über Ihren Browser installiert und nicht aus einem App-Store heruntergeladen. Klicken Sie oben auf dieser Seite in Chrome oder Edge (Windows, macOS, Linux, ChromeOS) auf „App installieren“ oder verwenden Sie auf Android-Geräten „Teilen“ → „Zum Startbildschirm hinzufügen“ auf dem iPhone und iPad bzw. „Datei“ → „Zum Dock hinzufügen“ in Safari 17+ auf einem Mac. Die App öffnet sich dann in einem eigenen Fenster mit einem eigenen Symbol, und da sie vollständig in Ihrem Browser ausgeführt wird, funktioniert sie auch offline. Firefox auf dem Desktop kann keine Web-Apps installieren. So funktioniert die Installation.

Ähnliche Tools