Escape special characters for JSON and JavaScript strings. Newline becomes \n, tab becomes \t, quote becomes \", backslash becomes \\. Handles Unicode escape sequences like \u00A9.
Type or paste text to instantly escape special characters for JSON strings. Switch to unescape mode to restore original characters from escape sequences. Displays both escaped output and JSON string preview with quotes. Includes reference table of common escape sequences.
Prepare strings for JSON files. Escape user input for JavaScript strings. Create regex patterns. Handle Windows file paths with backslashes. Format strings for configuration files.
Escapes quotes (\"), backslashes (\\), and control chars ( , , , , ). Control chars U+0000 to U+001F are converted to \uXXXX Unicode escape sequences. Unescaping supports both JSON.parse and manual replacement for flexibility.
Replaces special characters with escape sequences to treat them as literal text. JSON quote becomes \" to avoid breaking syntax.
Escape quotes (\"), backslashes (\\), and control chars (\n, \t, \r). Tool handles this automatically.
Escaping: replaces chars with sequences (\n for newline). Encoding: transforms to different format (Base64, URL percent-encoding).
Escape HTML special characters or decode entities. Prevent XSS and display reserved characters safely.
Convert special characters to percent-encoded format for URLs. Decode encoded URLs back to readable text.
Format, validate, and minify JSON data with error detection and proper indentation.
Transform, format, generate, and encode data instantly. Private, fast, and always free.
Browse All Tools