HomeToolsHTML Entity Encoder & Decoder
Text

HTML Entity Encoder & Decoder

Browser-based HTML entity encoder and decoder for ampersands, angle brackets, quotes, apostrophes, and named or numeric entities.

Ad space

Encode text so characters such as &, <, >, quotes, and apostrophes can be represented safely as text in HTML markup. Decode named and numeric entities back to readable characters.

Escaping depends on context. This tool targets ordinary HTML text and attributes; it is not a complete sanitizer for untrusted HTML, URLs, CSS, or JavaScript.

Frequently asked questions

Does encoding sanitize arbitrary HTML?

No. Safe output encoding is context-specific, and untrusted HTML may require a proven sanitizer.

What is a numeric entity?

It represents a character by code point, such as &#39; for an apostrophe.

Is the text uploaded?

No. Conversion runs in the browser.

More tools you might like Browse all free tools on 7achech →