HTML Entity Encoder

Escape reserved characters and symbols into HTML entities, or decode entities back to plain text. Switch between named and numeric output, and choose whether to escape only non-ASCII. It runs in your browser.

This html entity encoder lets you escape HTML online so characters like <, > and & show as text instead of breaking your markup. Encode HTML entities as named references or numeric ones when you want the widest compatibility. Flip to decode and it becomes an html entity decoder that turns escaped tags and symbols back into the characters they stand for. It reads named, decimal and hex entities, and runs entirely in your browser.

Raw text / HTML
Escaped entities

How it works

  1. 1

    Choose encode or decode

    Encode escapes raw text into entities; decode turns entities back into plain characters. The output updates live.

  2. 2

    Pick named or numeric

    When encoding, choose named entities or numeric ones, and optionally escape only the non-ASCII characters.

  3. 3

    Copy the result

    Copy the escaped HTML or the decoded text, or download it as a file.

Instant & 100% private — nothing is uploaded

Everything runs locally in your browser. Your code, text and files are processed on your own device and are never sent to a server — so there are no upload waits, no size limits from us, and nothing is ever stored or logged.

Frequently asked questions

What is an HTML entity?
It is a code that stands in for a character, so reserved symbols like < and & are shown as text instead of being read as markup. The browser renders the code as the character it represents.
When should I encode HTML entities?
Whenever text with <, >, & or quotes goes into a page or attribute. Escaping it prevents broken layout and blocks a common route for injected markup.
Named or numeric — which should I use?
Named entities read more clearly to a human. Numeric ones work even where a name is not defined, so they are the safer choice for unusual symbols.
Does the decoder handle hex entities?
Yes. The html entity decoder resolves named entities, decimal codes and hexadecimal codes, all in one pass.
Is anything uploaded when I escape HTML online here?
No. Encoding and decoding both run locally in your browser, so the text you paste stays on your machine.