+ +

Free tool · HTML entities

Free HTML encoder and decoder

Encode text as HTML entities so code shows as code, or decode <, é and ’ back into characters. Named, decimal or hex. Runs in your browser.

+ +
Encoded
Encode
Format
65 → 108 characters Runs in your browser. We don't store what you paste.
✓Your page live in seconds ✓An unlisted link you can send anyone ✓Claim it free to keep it live

Decoded HTML is published as the page itself; encoded text is published as a code sample people can read and copy. Published free with no signup, it is live for 7 days; sign up free to keep it. A published page is public to anyone with the link and noindex.

+ +

How it works

Encode or decode HTML entities in three steps

HTML entities are how a page writes a character that would otherwise be read as markup, or that the file’s encoding cannot hold: &lt; for <, &amp; for &, &eacute; for é. This HTML encoder and decoder converts both ways as you type, entirely in your browser.
1

Pick a direction

Encode turns characters into HTML entities, so code shows as text on a page. Decode turns entities like &lt; and &eacute; back into the characters they stand for.

2

Paste the text

The result updates as you type. When encoding, choose which characters to escape and whether entities are named (&eacute;), decimal (&#233;) or hex (&#xE9;).

3

Copy, swap, or publish

Copy the result, swap it back into the input to check the round trip, or publish it as a page: decoded HTML as the page itself, encoded code as a readable code sample.

+ +

Where it helps

HTML encode and HTML decode, for the text you get handed

Escaping is easy to get wrong by hand: one missed ampersand and a page shows the wrong character, or a snippet runs as markup instead of showing as text.

Show code on a page

A snippet pasted into a blog post, a doc or a CMS field disappears or breaks the layout, because the browser reads its tags. Encoded, it shows as text, exactly as written.

Read escaped HTML

HTML stored in JSON, XML, a database export or an email source often arrives as &lt;div&gt;. Decode it to get the markup back, then preview or publish it.

Fix mojibake and odd symbols

Accents and symbols that turned into &eacute;, &#8217; or &nbsp; in an export decode to the characters they stand for. Text encoded twice shows as &amp;lt; and decodes in two passes.

+ +

The next step

Share the result as a page

A decoded HTML page or a code sample reads better at its own URL than in a chat thread. Publish it from the box above: isolated from your account data, and free for 2 public pages, so you can see that it was opened.

Noindex by default

Published pages tell search engines to stay away, so a code sample or a page you share won’t surface on Google the way most free paste sites can.

Password protection

On Solo and Team, lock a page with an encrypted password we can’t read, enforced before the page ever loads.

View tracking

A snippet pasted into a chat goes quiet. A page counts every view, and Solo and Team add unique viewers, country and time on page.

+ +

More free tools

Other viewers and converters

HTML viewer

Paste the decoded HTML and see the rendered page, desktop and mobile, in a sandboxed frame.

Open the HTML viewer →

HTML formatter

Decoded markup on one long line? Beautify it with a 2 or 4 space indent, or minify it.

Format HTML →

HTML to text

Strip the tags from any HTML and keep the readable text, with lists, tables and line breaks intact.

Convert HTML to text →
+ +

HTML encoder FAQ

An HTML encoder replaces characters that have a meaning in HTML with character references, also called HTML entities: < becomes &lt;, > becomes &gt;, & becomes &amp;, and quotes become &quot; and &#39;. The browser then shows those characters as text instead of reading them as markup. An HTML decoder does the reverse.

+ +

Send the page, not the snippet

Free for 2 public pages. Solo is $15/mo and adds custom domains, passwords, and full view tracking.