Outils d’échappement pour développeurs
Échappez et déséchappez les chaînes pour JSON, regex, JavaScript, CSS et XML. Déterministe, hors ligne, gratuit — pensé pour le quotidien du dev.
- Aucune limite de longueur
- Sans inscription
- Gratuit pour toujours
- Votre texte ne quitte jamais votre navigateur
Escape strings for JSON, JavaScript, CSS, XML, and regular expressions without hand-counting backslashes. The output is deterministic and the conversion runs in your browser.
Choose the syntax context before escaping. A string safe inside JSON is not automatically safe inside HTML, JavaScript source, a SQL query, or a regular expression.
Why String Escaping Is Critical
Quotes, backslashes, control characters, and newlines have syntax meaning. Leaving them raw can break a parser, terminate a string early, or turn data into executable syntax.
Escaping prevents syntax collisions. It does not validate business input or replace context-aware output encoding and parameterized database queries.
The 5 Developer Escape Tools You Need
- JSON Escape & Unescape ToolEscape raw text for JSON strings and unescape JSON string content without hand-counting backslashes.
- JavaScript String Escape & FormatterCreate JavaScript string literals with single quotes, double quotes, or template literals.
- SQL String Escape & Injection Prevention ToolInspect SQL string escaping while learning why prepared statements are the correct production defense.
- Regex Escape Tool - Match Literal StringsEscape regular-expression metacharacters so user input is matched literally.
- CSV Escape & Formatter ToolPrepare CSV fields with RFC 4180-compatible quotes, commas, newlines, and escaped internal quotes.
Escaping vs. Encoding vs. Hashing
Escaping makes literal data safe inside a particular syntax context.
Encoding changes representation for transport, such as Base64 or percent encoding.
Hashing creates a one-way digest. It is useful for integrity and password verification workflows, not for recovering the original string.
FAQ
Does escaping prevent all injection attacks?
No. Escaping is context-specific and easy to misuse. Use prepared statements for SQL and context-aware output encoding for HTML and JavaScript.
How do I unescape a string in Python or JavaScript?
Use the language parser or a context-specific decoder rather than chained replacements. This site can help inspect and convert the string before you place it in code.
Explorez les autres outils
Votre texte ne quitte jamais votre navigateur
Chaque outil fonctionne localement sur votre appareil. Rien de ce que vous collez n’est envoyé, stocké ou suivi.