Developer Utility Tools

String Escape/Unescape

Escape or unescape strings for JSON, HTML, URL, JavaScript, CSV, and other formats.

HTML Encoding

Converts special HTML characters like <, >, &, ", and ' to their HTML entity equivalents.

Quick Reference

HTML Entities

< → &lt;
> → &gt;
& → &amp;
" → &quot;

JavaScript Escapes

' → \'
" → \"
\ → \\
newline → \n

URL Encoding

space → %20
& → %26
= → %3D
? → %3F

About string escaping

Different data formats require different characters to be escaped. In JSON, double quotes and backslashes must be preceded by a backslash. In HTML, angle brackets and ampersands must be converted to entities. In URLs, spaces and special characters must be percent-encoded.

This tool handles escaping and unescaping for multiple formats. It is useful when constructing test data, debugging encoding issues, or preparing strings for insertion into different contexts.