— Encoders & generators

HTML Entity Encoder / Decoder

Escape special characters into HTML entities to display code safely, or decode entities back to plain text — live, in your browser.

— What it does

The HTML Entity Encoder / Decoder is a free tool that converts text to and from HTML entities. It escapes the five characters that break HTML — ampersand, less-than, greater-than, double quote, and apostrophe — and can optionally encode every non-ASCII character to a numeric entity, so you can safely embed text in markup. It also decodes named entities like & and numeric ones like © or © back to their original characters. Everything runs locally — nothing is uploaded.

  • Escapes the five core HTML characters (& < > " ') so text renders as plain text in markup.
  • Optionally encodes all non-ASCII characters to numeric entities for maximum portability.
  • Decodes named, decimal, and hexadecimal entities back to readable text.
  • Runs entirely in your browser — nothing you paste is ever uploaded to a server.

How to use it

1

Choose encode or decode

Use the Encode / Decode toggle to pick the direction you want to convert.

2

Paste your text or HTML

Type or paste your content. When encoding, choose whether to also escape non-ASCII characters.

3

Copy the result

The output updates as you type. Copy the escaped or unescaped text to your clipboard.

Frequently asked

Which characters does HTML encoding escape?
By default it escapes the five characters that are unsafe in HTML: ampersand becomes &amp;, less-than becomes &lt;, greater-than becomes &gt;, double quote becomes &quot;, and apostrophe becomes &#39;. You can also opt in to encoding every non-ASCII character as a numeric entity.
Can it decode numeric entities like &#x1F600;?
Yes. The decoder handles named entities (such as &copy; and &nbsp;), decimal numeric entities like &#169;, and hexadecimal numeric entities like &#xA9; or &#x1F600;, converting each back to its original character.
Why would I escape HTML entities?
Escaping lets you show literal HTML or special characters as text rather than having the browser interpret them as markup. It also prevents broken pages and cross-site scripting when user-supplied text is inserted into HTML.
Is my text uploaded anywhere?
No. All encoding and decoding happens locally in your browser with JavaScript. Nothing you paste is sent to a server or saved, so it is safe for private or sensitive content.
— Built by saavos

These tools are free. So is the first version of your agent.

saavos is the AI agent that lives on your website — themed to match your design, answering visitors from your own content, and telling you what they actually want to know. Paste your URL and see it answer, before you install anything.

Make my site feel alive