HTML Entity Encoder / Decoder

Encode special characters to HTML entities (&, <, >, "…) or decode them back to plain text. Supports named entities, decimal (&), and hex (&) forms. Essential for safely embedding user input in HTML.

Runs in your browser Nothing uploaded Free, no signup

Everything stays in this browser

HTML Entity Encoder / Decoder: questions

Why encode HTML entities?
To prevent HTML injection and XSS attacks. Characters like <, >, &, and " must be encoded when inserted into HTML to avoid being interpreted as markup.
What is the difference between &amp; and &#38;?
Both represent the ampersand character (&). Named entities (&amp;) are human-readable; decimal (&#38;) and hex (&#x26;) are numeric representations of the same Unicode code point.

Made something with AI? Share it as a private link.

Drop in the HTML from Claude, ChatGPT or any editor and get a link your client can open anywhere — with a password, view tracking, comments and approval.