A LITTLE CLARITY, RIGHT HERE

HTML Entity Encoder / Decoder

Encode HTML special characters or decode named, decimal and hexadecimal entities as plain text. Copy, swap and clear Unicode content locally.

Let’s work it out.

On your device
HTML Entity Encoder / Decoder inputs and actions
All modes encode &, <, >, double quotes and apostrophes. Decimal and hexadecimal modes also encode non-ASCII characters. Decoding always recognizes all supported named and numeric entities, independent of this encoding mode.

Processed only in this browser, with no upload or saved input. Limit: 1,000,000 UTF-16 code units. Output is always plain text; HTML is never executed.

Recognizes 2,125 HTML5 names plus decimal and hexadecimal numeric references. A closing semicolon is required. Unknown names and incomplete references are left unchanged when decoding. Decoding performs one pass, so &amp;lt; becomes &lt;. Existing complete references are preserved when encoding unless double encoding is selected.

Numeric zero, surrogate values and values above U+10FFFF become the replacement character. HTML's legacy Windows-1252 numeric mappings are applied (for example, &#128; becomes €). Line breaks and other text remain intact.

Processed in your browser. Your content is not sent to KEVEEK.

How to use this tool

Paste text and choose Encode to escape HTML special characters, or Decode to turn supported named and numeric entities into text. Select the encoding policy before handling text that already contains entities. Copy or swap the output, or clear the tool.

How it works

Encoding replaces HTML-sensitive characters with character references. Decoding recognizes named HTML references and decimal or hexadecimal numeric references without interpreting the resulting text as HTML. Output is always displayed as plain text.

A QUICK EXAMPLE

Put it into practice.

<div>Hello & Welcome</div> encodes as &lt;div&gt;Hello &amp; Welcome&lt;/div&gt;. The reference &#x1F600; decodes to a smiling emoji.

Good to know

Encoding mode and named-reference decoding are separate choices. Existing valid references are preserved by the default encoding policy; use explicit double encoding when literal entity syntax must be escaped. Unknown or incomplete references follow the documented policy shown beside the controls. This is a text conversion tool, not an HTML sanitizer.

Common questions

Can decoded HTML execute?

No. Input and output are handled as text, never inserted as executable HTML. Do not treat decoding as sanitization when using the result in another application.