HTML Entity Encoder/Decoder

Encode and decode HTML entities

Share this tool

Report a problem

Describe the problem without including private input or files.

How useful was this tool?

How useful was this tool?

Encoding and decoding update together. Spaces are preserved; entities are decoded once.

Processed on this device. Your text is not uploaded.

Quick examples

Common HTML entities
About HTML entity encoding

HTML entities let you display special characters as text in HTML. Escape text for the context in which it will be used; entity encoding alone is not a substitute for sanitizing untrusted HTML.

About HTML Encoder & Decoder

Our free HTML encoder and decoder tool converts special characters into their HTML entity equivalents and reverses the process. Characters like angle brackets, ampersands, and quotation marks have special meaning in HTML and must be encoded to display correctly on web pages and to prevent cross-site scripting (XSS) attacks.

HTML entity encoding replaces reserved characters with named or numeric entity references. For example, < becomes &lt;, & becomes &amp;, and " becomes &quot;. This process ensures that browsers render the characters as text rather than interpreting them as HTML markup, which is critical for displaying user-generated content safely.

Nothing you enter is uploaded, which makes it a good fit for encoding sensitive content, sanitizing form inputs during development, or quickly looking up HTML entity references. The built-in reference table covers the most commonly used HTML entities for instant access.