HTML Entities Encoder / Decoder
Encode reserved HTML characters — < > & " ’ — into their entity form, plus named entities such as £ © € — and accented letters, or reverse the process to decode entities back to plain text. Numeric (©) and hexadecimal (©) 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 & or © 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 £ or ©, not just &?
Yes — the full standard set of named entities is supported, including currency symbols (£ €), 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 ©, numeric entities use a decimal code point like ©, and hex entities use a hexadecimal code point like © — 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.