ToolLineup

HTML Entities Encoder / Decoder

Encode reserved HTML characters — < > & " ’ — into their entity form, plus named entities such as &pound; &copy; &euro; &mdash; and accented letters, or reverse the process to decode entities back to plain text. Numeric (&#169;) and hexadecimal (&#xA9;) entity formats are supported alongside the full standard named-entity set — currency symbols, Greek letters, arrows, and math symbols included. This prevents both broken HTML rendering and cross-site scripting (XSS) when displaying untrusted text. The conversion runs entirely client-side in your browser.

Frequently asked questions

What are HTML entities and why are they needed?

HTML entities are text sequences like &amp; or &#169; that represent characters — such as <, >, &, and the copyright symbol — that either have special meaning in HTML markup or can’t be typed directly, so they render as literal text instead of being interpreted as code.

When should I encode text with HTML entities?

Encode any time you display untrusted or user-supplied text inside HTML markup — it stops the browser from interpreting characters like < and & as tags or entities, which prevents both broken page rendering and cross-site scripting (XSS) attacks.

Does this support named entities like &pound; or &copy;, not just &amp;?

Yes — the full standard set of named entities is supported, including currency symbols (&pound; &euro;), accented letters, Greek letters, arrows, and math symbols, in addition to the five basic markup entities.

What’s the difference between named, numeric, and hex entities?

Named entities use a mnemonic like &copy;, numeric entities use a decimal code point like &#169;, and hex entities use a hexadecimal code point like &#xA9; — all three represent the same character, and this tool encodes and decodes all of them.

Is my text uploaded anywhere when I use this tool?

No — all encoding and decoding happens locally in your browser, so no HTML or text you enter is sent to a server.