Developer & Text Suite
Runs 100% Client-Side in Browser

HTML Entity Encoder & Decoder

Encode special characters into standard HTML entities or decode escaped entities back to readable text. Supports named, decimal, and hexadecimal formats with a live character cheat sheet and safe preview.

Entity Format:
Encoding Scope:
Common ScenariosClick to load realistic text and code samples
65 chars • 69 B
Transformed Output95 chars • 99 B
65Input Length
95Output Length
8Entities Found
+46% Size Change

HTML Entities Quick Reference Cheat Sheet

Search and 1-click copy commonly used HTML entity names, decimal codes, and hexadecimal values.

CharNamed EntityDecimalHexadecimalDescriptionAction
&&&&Ampersand
<&lt;&#60;&#x3C;Less than
>&gt;&#62;&#x3E;Greater than
"&quot;&#34;&#x22;Double quotation mark
'&#39;&#39;&#x27;Single quote (apostrophe)
€&euro;&#8364;&#x20AC;Euro sign
£&pound;&#163;&#xA3;Pound sterling sign
¥&yen;&#165;&#xA5;Yen / Yuan sign
¢&cent;&#162;&#xA2;Cent sign
©&copy;&#169;&#xA9;Copyright symbol
®&reg;&#174;&#xAE;Registered trademark symbol
™&trade;&#8482;&#x2122;Trademark symbol
§&sect;&#167;&#xA7;Section sign
&para;&#182;&#xB6;Pilcrow / Paragraph sign
♥&hearts;&#9829;&#x2665;Black heart suit
±&plusmn;&#177;&#xB1;Plus-minus sign
×&times;&#215;&#xD7;Multiplication sign
÷&divide;&#247;&#xF7;Division sign
≠&ne;&#8800;&#x2260;Not equal to
≤&le;&#8804;&#x2264;Less-than or equal to
≥&ge;&#8805;&#x2265;Greater-than or equal to
∞&infin;&#8734;&#x221E;Infinity symbol
°&deg;&#176;&#xB0;Degree sign
←&larr;&#8592;&#x2190;Leftwards arrow
→&rarr;&#8594;&#x2192;Rightwards arrow
↑&uarr;&#8593;&#x2191;Upwards arrow
↓&darr;&#8595;&#x2193;Downwards arrow
↔&harr;&#8596;&#x2194;Left right arrow
⇒&rArr;&#8658;&#x21D2;Rightwards double arrow
&nbsp;&#160;&#xA0;Non-breaking space
—&mdash;&#8212;&#x2014;Em dash
–&ndash;&#8211;&#x2013;En dash
•&bull;&#8226;&#x2022;Bullet point
…&hellip;&#8230;&#x2026;Horizontal ellipsis

Why Use This HTML Entity Encoder & Decoder?

Built for developers, technical writers, and security professionals who need precise character sanitization.

XSS & Injection Protection

Sanitize untrusted user input before embedding it inside HTML markup or attribute strings.

Named, Decimal & Hex Formats

Choose between human-readable names like &copy; or numeric codes (&#169; / &#xA9;) for legacy email clients.

Searchable Entity Reference

Access an instant cheat sheet of mathematical symbols, arrows, currencies, and punctuation with 1-click copy.

100% Client-Side Privacy

Your strings, code, and confidential tokens are processed locally in your browser without transmitting any data.

How to Encode and Decode HTML Entities

1

Choose Encode or Decode Mode

Select "Encode" to transform raw HTML/text into safe entities, or "Decode" to convert entities back into characters.

2

Customize Format & Scope

Pick your desired entity format (Named, Decimal, Hex) and choose whether to encode only special characters or all non-ASCII symbols.

3

Inspect & Compare Results

Review the live character count, detected entities, and verify the rendered visual appearance in the safe preview.

4

Copy or Download Output

Copy the transformed result to your clipboard with one click or download it directly as an HTML or TXT file.

Frequently Asked Questions about HTML Entities

What is an HTML entity and why is it used?

An HTML entity is a piece of text that begins with an ampersand (&) and ends with a semicolon (;). They are used to display reserved characters (like < and > which would otherwise be parsed as HTML tags) or characters that are difficult to type on a standard keyboard (like © or €).

What are the 5 core XML / HTML special characters that must be escaped?

The five fundamental characters are: ampersand (&amp;), less-than (&lt;), greater-than (&gt;), double quote (&quot;), and single quote/apostrophe (&#39; or &apos;). Escaping these prevents browsers from mistaking user input for HTML tags or attribute boundaries.

What is the difference between Named, Decimal, and Hexadecimal entities?

Named entities use mnemonic words (like &copy; or &euro;) which are easy for humans to read. Decimal entities use numeric Unicode code points in base 10 (like &#169;), while Hexadecimal entities use base 16 (like &#xA9;). Numeric entities are universally supported by all parsers and XML processors.

Does encoding HTML entities prevent Cross-Site Scripting (XSS)?

Yes, when rendering user-submitted content inside HTML body elements, encoding special characters (<, >, &, ", ') ensures the browser treats the input as plain text rather than executable markup or script tags.

Does this tool send my text or code to DevsLoad servers?

No. The HTML Entity Encoder & Decoder runs 100% locally in your browser via JavaScript. No input, text, or converted output is ever sent to external servers or logged.