DataToolsLab
Encoding & Number Bases

HTML Entity Encoder / Decoder

Encode special characters as HTML entities and decode entities back to text.

Loading tool…

What is HTML Entities?

HTML entities represent reserved characters. This encoder handles the four core entities plus numeric references, and decodes all named and numeric entities back.

How it works

We use the browser DOM parser for decoding and a character map for encoding, covering all HTML4 and HTML5 named entities.

  1. Enter your input. Type or paste your input into the field above — the tool responds instantly.
  2. Review the result. Output updates live as you type. Everything runs entirely in your browser.
  3. Copy or download. Use the Copy button to grab the result, or Download to save it as a file.

Examples

Realistic sample

Type or paste any realistic input — the tool computes the result locally and instantly.

Common mistakes

Expecting a server round-trip

Nothing is uploaded — every tool in this category runs entirely in your browser.

Online