Send feedback

Coming from the page: HTML Entities Encode & Decode

One moment…

Full HTML5 tableEncode & decodeRuns in your browser

HTML Entities Encode & Decode

Show code on your page without it running, or turn " and friends back into readable text.

Everything runs in your browser: no text or file is uploaded to any server.

How to use it

1

Pick an action

The basic encoding is usually enough to show HTML code on a page. Decoding gives the text as a browser shows it.

2

Paste

The output appears at once.

3

Copy

Copy it, or use it as input for the reverse action.

Common HTML entities

In codeShows
&&
&lt;<
&gt;>
&quot;"
&#39;'
&nbsp;non-breaking space
&copy;©
&reg;®
&trade;™
&hellip;…
&mdash;—
&times;×
&rlm;RTL mark
&lrm;LTR mark

Good to know

Why escape special characters? To show text containing < or & on a page without the browser reading it as a tag, and to block injected code (XSS) when showing what visitors type.

Should I encode accented letters? Not on a UTF-8 page. Encoding é as &eacute; makes it bigger and harder to read; it only helps in ASCII-only systems.

Exact decoding. We follow the same HTML Standard rules as browsers, including edge cases like &copy without a semicolon.

FAQ

What are HTML entities?

Codes starting with & and ending with ; that stand for a character, like &lt; for < or &#xE9; for é. Browsers use them for characters that mean something in HTML.

What’s the difference between &#233; and &#xE9;?

Both are é: the first is its decimal number, the second its hexadecimal number. Browsers understand both.

When should I tick “attribute value”?

When the text comes from inside an attribute like href="...". There, some legacy names without a semicolon, like &copy=1 in links, are not decoded.

Is my text sent anywhere?

No. Encoding and decoding happen in your browser.