Instant • private • developer-friendly

HTML Entity Encoder & Decoder

Convert raw characters like <, > and & into safe HTML entities, or decode entities back into plain text.

Raw text

0 characters

Encoded HTML

Ready
0 characters converted

🔒 Your text stays on your device and is never uploaded.

Encode or decode HTML entities online

Switch between Encode and Decode to escape unsafe characters for use inside HTML, or convert entities like &amp; and &#39; back into readable text. Choose numeric output when you need entities that work regardless of character set.

Named and numeric

Encode using readable named entities or universal decimal/hex numeric codes.

Full Unicode decoding

Decodes common named entities plus any decimal or hexadecimal numeric entity.

Private by design

Everything runs locally in your browser. Copy or download the result without an account.

HTML entity encoder & decoder FAQ

Why encode characters as HTML entities?

Characters like <, > and & have special meaning in HTML. Encoding them as entities lets you display them as literal text without breaking the page's markup.

What is the difference between named and numeric entities?

Named entities like &amp; are easier to read. Numeric entities like &#38; or &#x26; use a Unicode code point and work for virtually any character, including ones without a common name.

Does decoding handle both named and numeric entities?

Yes. The decoder resolves common named entities as well as decimal and hexadecimal numeric entities.

Is my text uploaded anywhere?

No. Encoding and decoding both run locally in your browser.