Skip to content
//nullpath.tools

Util / Encoding

/

HTML Encode / Decode

0 requests sent since load
Input

convert

output

options

Output

About HTML encoding

HTML encoding (escaping) replaces characters that have special meaning in HTML —&, <,>, and optionally quotes — with their entity equivalents so they render as literal text rather than being interpreted as markup. Decoding uses the browser's own HTML parser, so every named entity (&nbsp;, &copy;, etc.) and numeric reference (&#169;) is handled correctly.

FAQ

Named vs numeric entities?

Named entities (&amp;) are more readable; numeric (&#38;) work in any XML context. Both decode identically.

Is my data sent anywhere?

No. Encoding uses a plain regex replacement; decoding uses a temporary in-memory DOM element — no network requests.