GameParticles

String Escape / Unescape

DeveloperNew

Handle escape sequences for any context: JSON strings, JS literals, regex patterns, URL percent-encoding and HTML entities. Escape or unescape instantly in both directions.

Escapes \n \r \t \\ \" for safe embedding inside JSON strings.
Original string
Escaped output

Works great for

🔧

Embedding strings in JSON payloads

Escape newlines, quotes, and backslashes before inserting dynamic text into JSON bodies or REST API request payloads. Prevents malformed JSON and hard-to-debug parse errors.

🔍

Building regex patterns safely

Escape special regex metacharacters like dots, parentheses, and dollar signs when constructing dynamic regular expressions from user input. Essential for search-and-replace and input validation logic.

🗄️

Preparing SQL string literals

Sanitize strings before embedding them into SQL queries or stored procedures where dynamic values contain quotes or special characters. Reduces the risk of syntax errors in hand-crafted queries.

🌐

Escaping HTML content in JavaScript

Convert angle brackets, ampersands, and quotes to HTML entities when injecting text into innerHTML or template strings. Prevents XSS vulnerabilities and malformed markup.

📋

Encoding control characters in log entries

Escape tab characters, carriage returns, and null bytes in log messages before writing to structured log pipelines. Makes log entries parseable by tools like Splunk, Elasticsearch, and Datadog.

🛡️

Sanitizing user input for safe display

HTML-escape form submissions and user-generated content before rendering it on a page or passing it to a downstream service. A quick way to verify output encoding during code review or QA.

string escapestring unescapejson string escapejavascript escaperegex escapeurl escapehtml escapeescape special charactersescape quotesunescape string
JSON Formatter
Developer · Format, validate and minify JSON with syntax highlighting.
Base64 Encode / Decode
Developer · Encode text to Base64 or decode Base64 back to plain text.
URL Encoder / Decoder
Developer · Encode or decode URL components and query strings.
Hash Generator
Developer · Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
UUID Generator
Developer · Generate UUIDs v4 (random) in bulk with one click.
Regex Tester
Developer · Test regular expressions against text with live match highlighting.
Word Counter
Text · Count words, characters, sentences, paragraphs and reading time.
Case Converter
Text · Convert text between UPPER, lower, Title, camelCase, snake_case and more.
List Sorter
Text · Sort, reverse, deduplicate and shuffle lists of text.
Markdown Preview
Text · Write Markdown and see a live rendered preview side by side.
Percentage Calculator
Numbers · Calculate percentages, increases, decreases and what % one number is of another.
Color Converter
Colors · Convert colors between HEX, RGB, HSL and HSV instantly.
Snake
Arcade · Eat food, grow longer, don't hit the walls. A timeless classic.
2048
Puzzle · Slide tiles and combine them to reach the legendary 2048 tile.