ToolHub
&

HTML Entities

Encode/decode HTML entities, named and numeric.

Encoded
โ€”
Decoded (paste encoded text above)
โ€”

About the HTML Entities

Encode text into HTML entities or decode entities back into characters. Basic mode covers the five markup-critical characters, extended mode adds named entities for symbols like ยฉ, โ„ข, โ‚ฌ and mdash, and the all mode converts every non-ASCII character to numeric &#xโ€ฆ; references.

How to use the HTML Entities

  1. Choose a tab: Basic, Extended, or All non-ASCII.
  2. Paste your text or markup into the editor.
  3. Copy the Encoded output for safe embedding in HTML.
  4. To decode, paste entity-encoded text in the same input and read the Decoded box below.

HTML Entities FAQ

Which characters does basic mode escape?

Exactly the five that matter for markup safety: & becomes &amp;, < becomes &lt;, > becomes &gt;, the double quote becomes &quot; and the apostrophe becomes &apos;.

When should I use numeric entities?

Use the all non-ASCII mode when targeting systems with limited character sets โ€” it converts every character above code point 127 to a &#xโ€ฆ; reference that survives any encoding.

Can it decode named entities too?

Yes. Decoding understands both named forms like &nbsp; and numeric forms like &#x27;, matching what browsers accept in real documents.