HTML Entity Encoder

Plain Text0 chars
Encoded HTML0 chars

HTML Entity Reference

CharacterDescriptionNamedNumeric
&Ampersand&&
<Less than&lt;&#60;
>Greater than&gt;&#62;
"Double quote&quot;&#34;
'Apostrophe&apos;&#39;
[ ]Non-breaking space&nbsp;&#160;
©Copyright&copy;&#169;
®Registered&reg;&#174;
Trademark&trade;&#8482;
Em dash&mdash;&#8212;
En dash&ndash;&#8211;
Horizontal ellipsis&hellip;&#8230;
«Left double angle quote&laquo;&#171;
»Right double angle quote&raquo;&#187;
Bullet&bull;&#8226;
·Middle dot&middot;&#183;
°Degree sign&deg;&#176;
±Plus-minus&plusmn;&#177;
×Multiplication&times;&#215;
÷Division&divide;&#247;
µMicro sign&micro;&#181;
Paragraph sign&para;&#182;
§Section sign&sect;&#167;
Euro sign&euro;&#8364;
£Pound sign&pound;&#163;
¥Yen sign&yen;&#165;
¢Cent sign&cent;&#162;
Left single quote&lsquo;&#8216;
Right single quote&rsquo;&#8217;
Left double quote&ldquo;&#8220;
Right double quote&rdquo;&#8221;
Left arrow&larr;&#8592;
Right arrow&rarr;&#8594;
Up arrow&uarr;&#8593;
Down arrow&darr;&#8595;
Heart suit&hearts;&#9829;
Diamond suit&diams;&#9830;
Club suit&clubs;&#9827;
Spade suit&spades;&#9824;

What This Tool Does

HTML Entity Encoder is built for deterministic developer and agent workflows.

Encode and decode HTML entities and special characters.

Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.

Last updated:

This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.

Agent Invocation

Best Path For Builders

Browser workflow

Runs instantly in the browser with private local processing and copy/export-ready output.

Browser Workflow

This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.

/html-entities/

For automation planning, fetch the canonical contract at /api/tool/html-entities.json.

How to Use HTML Entity Encoder

  1. 1

    Choose encode or decode

    Select whether you're encoding (text → HTML entities) or decoding (entities → readable text).

  2. 2

    Paste text or entities

    Input raw text with special characters (©, ™, →, émojis) or paste an HTML string with entity codes (&lt;, &amp;, &nbsp;).

  3. 3

    Select entity format

    Choose named entities (&amp;), numeric (&38;), or hexadecimal (&#x26;). Named is most readable; hex is most compact.

  4. 4

    Encode or decode instantly

    The tool processes on-the-fly. See character-by-character conversion in a side-by-side comparison.

  5. 5

    Copy for web use

    One-click copy to clipboard. Perfect for embedding in HTML, email, or preventing XSS attacks by escaping user input.

Frequently Asked Questions

What is HTML Entity Encoder?
HTML Entity Encoder converts special characters to their HTML entity equivalents and back. It handles named entities (like &amp;amp;), numeric entities, and all special characters used in HTML.
How do I use HTML Entity Encoder?
Paste text containing special characters and click Encode to convert them to HTML entities, or paste encoded text and click Decode to convert entities back to readable characters.
Is HTML Entity Encoder free?
Yes. This tool is free to use with immediate access—no account required.
Does HTML Entity Encoder store or send my data?
No. All processing happens entirely in your browser. Your data never leaves your device — nothing is sent to any server.
When should I use HTML entities?
HTML entities are needed when displaying reserved characters like <, >, &, and quotes in web pages. They prevent browsers from interpreting these characters as HTML markup, which also helps prevent XSS vulnerabilities.