HTML Entity Encoder

Encode and decode HTML entities: basic escapes, extended non-ASCII, named entities, and numeric &#…; codes. Live preview with common entity shortcuts.

PrivateIn your browserInstantUnlimited
Insert:

How it works

1

Choose direction and mode

Encode turns special characters into entities; Decode reverses them. Basic escapes <, >, &, quotes. Extended adds numeric codes for non-ASCII. All encodes every character.

2

Paste or insert entities

Type or paste HTML or plain text. Click common entity buttons to insert &lt;, &copy;, &nbsp;, and others at the cursor.

3

Copy or download

Live mode updates the output as you type. Turn it off to convert on button click. Swap moves the result back to input and flips direction.

What are HTML entities?

HTML entities represent characters that would otherwise be interpreted as markup or are hard to type. &lt; displays as < without starting a tag; &copy; shows ©. Developers encode untrusted text and decode legacy content that stores entities instead of raw Unicode.

Why use this tool

  • Encode and decode HTML entities
  • Basic, extended, and all-numeric encode modes
  • Decode decimal, hex, and named entities
  • Common entity insert buttons
  • Live mode with swap and sample
  • Unlimited use — no daily cap

Questions

What does HTML Entity Encoder do?

It converts special characters to HTML entities (encode) or reverses entity strings back to characters (decode).

What is the difference between encode modes?

Basic escapes the five HTML-significant characters. Extended also encodes non-ASCII letters as &#decimal;. All encodes every character numerically or by name.

What entities can decode handle?

Named entities like &copy; and &nbsp;, decimal &#169;, and hex &#xA9; forms.

When should I encode HTML?

When displaying user input as text inside HTML, or when embedding special characters in attributes. Prevents the browser from interpreting markup.

Is my text sent to a server?

No. Conversion runs entirely in this tab.

Is there a daily limit?

No. This tool has no daily cap.

If Easy24 helped, buy a coffee

Tools stay free in your browser. One-time thanks via Kreosus. Turkish cards work.

Buy a coffee

Similar Developer tools

See all