Unicode to HTML Entities Converter

Convert characters to decimal or hexadecimal HTML entities for source code, email, and markup.

  • No length limits
  • No registration
  • Free forever
  • Your text never leaves your browser
Options
Output
Your result will appear here as you type.

Decimal vs. Hexadecimal Entities

An HTML entity is a character written as a code: the decimal form uses © and the hexadecimal form uses ©, both naming the same copyright sign. Browsers render both identically, so the choice is about readability and convention rather than behavior.

Hexadecimal is the form most developers reach for, because it matches how Unicode itself is documented — the entity © visibly contains the same 00A9 as the U+00A9 code point, making comparison with reference tables immediate. Decimal is the older form and still appears in legacy markup and some generated content.

Whatever the form, an entity is a robust way to embed a character that is awkward to type or risky to paste raw, and both forms survive transport through systems that would mangle the literal character.

When to Use Entities vs. UTF-8

UTF-8 is the default for the modern web: pages declare it, browsers expect it, and raw characters are the norm. Entities are not needed for everyday HTML under UTF-8, which is why most sites never use them.

Entities remain genuinely useful in the corners where raw characters are a problem. XML requires them for characters that conflict with markup syntax, some email clients still mangle non-ASCII characters in transit, and escaping user input as entities is one layer of defense against markup injection in contexts where it is not already encoded.

The decision rule: use UTF-8 and raw characters for your own content, and reach for entities when the destination format is strict, the transport is unreliable, or the text includes characters that could be mistaken for markup.

A concrete case is user-generated text rendered inside a template: a comment containing a literal less-than sign can break the surrounding markup unless it is escaped. Entity-encoding that input is a routine layer of output encoding, and it is exactly the situation where the converter saves a debugging session.

Frequently asked questions

How do I decode HTML entities back to text?

Feed the entity-encoded string through an HTML entity decoder or a standards-compliant parser, which resolves © and © back into ©. The important step is context: decode at the right point in the pipeline, because decoding too early can re-expose characters that were escaped for a reason. If the input is untrusted, decode and then sanitize before rendering, since entity decoding is a parsing step, not a security control by itself.

Your text never leaves your browser

Every tool runs locally on your device. Nothing you paste is uploaded, stored, or tracked.