Developer

HTML Entity Encoder / Decoder — Escape & Unescape HTML Online Free

Encode special characters to HTML entities or decode entities back to plain text. Named and numeric entities, non-ASCII mode, reference table, and swap — all in your browser.

Also searched as: html entity encoder · html entity decoder · html escape online · html special characters encoder

Encode & DecodeUnicodeReference TableFree
Encode options
0 chars0 words0 spaces0 lines
0 chars0 words0 spaces0 lines

Common HTML entities

CharacterEntityNameCopy
&&Ampersand
<&lt;Less than
>&gt;Greater than
"&quot;Double quote
'&apos;Apostrophe
&nbsp;Non-breaking space
©&copy;Copyright
®&reg;Registered
&trade;Trademark
&euro;Euro
&mdash;Em dash
&hellip;Ellipsis

How to Use

Step-by-step guide to get the most from this tool

  1. 1

    Choose mode

    Select Encode to escape characters, or Decode to convert entities back to text.

  2. 2

    Enter text

    Paste plain text or HTML entities in the input area.

  3. 3

    Tune encode options

    In encode mode, choose named vs numeric entities and non-ASCII handling.

  4. 4

    Copy or swap

    Copy the output, or use Swap to flip input/output and toggle mode.

Features

What makes this tool stand out

🔀

Encode & decode

Single tool for both directions.

🌐

Non-ASCII support

Optional full Unicode entity encoding.

📋

Entity reference

Click to copy common entities.

↕️

Swap

Flip input/output in one click.

🔗

Shareable links

Encode options in the URL hash.

🔒

Private

100% client-side — no server calls.

Related Tools

More free utilities you might find useful

Frequently Asked Questions

Quick answers to common questions

What are HTML entities?+

HTML entities represent special characters using codes like &lt; for < and &amp; for &. They prevent browsers from interpreting markup in plain text.

When should I encode text?+

Encode user-supplied text before inserting it into HTML to prevent XSS attacks and broken markup.

What is the difference between named and numeric entities?+

Named entities like &amp; are human-readable. Numeric entities like &#38; or &#x26; work for any Unicode code point.

How does decoding work?+

The decoder uses the browser DOM to resolve entities safely — no network requests are made.

Can I encode non-ASCII characters?+

Yes. Enable "Encode all non-ASCII characters" to convert emoji, accented letters, and symbols to numeric entities.

Is my text uploaded?+

No. All encoding and decoding runs entirely in your browser.