HTML Encoder & Decoder

Convert text to HTML entities or decode entities back to plain text. Handles named entities and numeric (decimal and hex) references. Escape markup safely, all in your browser.

Encoded

HTML entity encoding

To show characters that HTML treats specially (<, >, &, quotes) you replace them with named or numeric entities like &lt; and &#233;. Encode turns raw text into safe, displayable markup; Decode turns entities back into the characters they represent, understanding both named and numeric (decimal and hex) forms.

All conversion happens in your browser, nothing is uploaded.

What this does

An HTML encoder converts characters like <, > and & into HTML entities so they display as text, and decodes entities back to plain text.

How to use it

  1. Paste text or HTML entities.
  2. Choose encode or decode.
  3. Read the result.
  4. Copy it.

How it works

Special characters become &lt;, &gt; and &amp; on encode. Decoding handles common named entities plus numeric references in decimal (&#233;) or hexadecimal (&#xE9;) form.

Example

“<b>” encodes to “&lt;b&gt;”, which the browser shows as text rather than markup.

Sources & methodology

Last updated .

Frequently asked questions

Why encode HTML entities?

Characters like <, > and & have special meaning in HTML. Encoding them as &lt;, &gt; and &amp; lets you display them as text instead of having the browser interpret them as markup.

Which entities can it decode?

It decodes common named entities (such as &copy; and &mdash;) plus any numeric reference in decimal (&#233;) or hexadecimal (&#xE9;) form.

Is my text uploaded?

No. Conversion happens entirely in your browser; nothing is sent or stored.