HTML Encoder/Decoder

Escape HTML special characters to entities (or decode them back), so text displays safely instead of being parsed as markup.

Input (HTML)
Output (entities)

About this tool

HTML encoding replaces characters that have special meaning in HTML — like <, >, &, and quote marks — with their entity equivalents (&lt;, &gt;, &amp;, and so on), so they display as literal text instead of being interpreted as markup. This is essential any time user-generated or untrusted text gets inserted into an HTML page, both to display it correctly and to prevent cross-site scripting (XSS) attacks. Decoding does the reverse, turning entities back into their original characters.

Version 1.0.0