String Encoding Tool

String Escape/Unescape

Safely encode and decode strings for HTML, JavaScript, JSON, and URL contexts.

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