FormatForge

Escape / Unescape

Escape or unescape strings for HTML, XML, JSON, JavaScript, SQL, and CSV. All processing happens in your browser.

What is String Escaping?

String escaping converts special characters into a safe representation for a specific context. This prevents syntax errors, injection attacks, and data corruption.

HTML Escaping

Converts characters like <, >, &, and quotes to HTML entities to prevent XSS attacks and rendering issues.

JSON Escaping

Escapes special characters in JSON strings including newlines, tabs, backslashes, and quotes for valid JSON formatting.

SQL Escaping

Escapes single quotes and special characters to prevent SQL injection when building database queries.

JavaScript Escaping

Escapes quotes, backslashes, newlines, and non-ASCII characters for safe inclusion in JavaScript string literals.

Related Tools