You need a copyright sign in a page footer, and you find two spellings for it: © and ©. A hex form, ©, turns up as a third option. All three print the same character, so the choice looks like pure taste, until the day a named entity you picked for some rarer symbol is left sitting in the page as raw text, undealt with, while a numeric spelling would have printed without complaint.

The difference between the forms is real, just narrower than it looks: it is about coverage and readability, not about what the reader sees. This guide compares them head to head, uses the free HTML Entity Encoder/Decoder on Ovatly as the testing bench, and ends with a simple rule for choosing.

Contents

  • Quick answer
  • Named entities: readable, memorable, finite
  • Numeric entities: decimal and hex, universal and opaque
  • The practical test: what the decoder does with each form
  • How to test an entity spelling, step by step
  • Worked example: one character, three spellings
  • Limitations and honest limits
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

For the characters themselves, there is no difference in effect: © and © are both the copyright sign. Choose by situation. Write the named form for the common symbols you read often, because © tells the next person what it is at a glance. Write the numeric form, decimal like © or hex like ©, when no name exists, when the name is obscure, or when a machine is generating the output. The HTML Entity Encoder/Decoder decodes all three forms, which makes it a quick way to test any spelling you are unsure of.

Named entities: readable, memorable, finite

A named entity spells a character with a word: © for the copyright sign,   for a non-breaking space, & for an ampersand. The strength of the form is exactly what the name promises. Source code stays readable months later, because the word tells you which character is meant without a lookup table, and the common names are easy to remember and quick to type.

The weakness is coverage. A name exists only where one has been defined, and the defined set, while large, is a fixed list of particular characters. Most symbols you reach for daily are on it. The long tail of rarer characters is where the form runs out: either no name was ever defined for the character you need, or the name that exists is so obscure that neither you nor your tools can be sure of it. A named entity is a vocabulary, and like any vocabulary it has edges.

Numeric entities: decimal and hex, universal and opaque

A numeric entity spells a character by its number in the Unicode table instead of by a name. It comes in two forms that mean the same thing: decimal, like ©, and hex, like ©, where the x marks the number as hexadecimal. Because every character has a number, the numeric form has no edges: if a character exists, it can be written this way, whether or not anyone ever gave it a name.

The cost is readability. A number tells you nothing at a glance. Reading © in source means pausing to decode it or trusting that whoever wrote it picked the right number, and a wrong digit quietly produces a completely different character rather than an obvious error. The numeric form trades the named form's clarity for total coverage, which is why the choice between them is a genuine trade rather than a ranking.

The practical test: what the decoder does with each form

Abstract coverage matters less than what your tools actually do with a spelling, and here the decoder draws the line in a useful place. Decoding understands common named entities, like © and  , decimal entities like © and hex entities like ©. Obscure named entities are left as they are.

That behaviour turns the decoder into a practical test for any spelling you are considering. Paste the entity in, decode it, and look at what comes back. A common named entity returns its character. Both numeric forms return their character. An obscure named entity returns itself, unchanged, which is the tool telling you the name is beyond what it handles. When that happens, the fix is not to hunt for a better name. It is to write the same character in numeric form, which the decoder, and anything built like it, will always resolve. The more obscure the name, the safer the number.

How to test an entity spelling, step by step

  1. Open the HTML Entity Encoder/Decoder and paste the entity spelling you want to check into the input box.
  2. Press Decode entities.
  3. Read the output box. If your character appears, the spelling resolves. If the entity comes back unchanged, it is an obscure name: rewrite it in decimal or hex form.
  4. Copy the result, or the corrected spelling, from the output box.

Worked example: one character, three spellings

Take the copyright sign and write it all three ways, then decode each spelling with the tool:

©
©
©

Each line decodes to the same single character:

©

Three spellings, one result, which confirms the starting point of this guide: for common characters the forms are interchangeable in effect, and the reader of the finished page cannot tell which one you used. The choice only starts to matter where the named form runs out. The entry for this tool makes the same point from the decoding side with a mixed string: decoding &lt;p&gt; &amp; &#169; gives back <p> & ©, named and numeric forms side by side, all resolved in one pass. The test from the previous section is what separates the forms in practice, not the output for characters like this one.

Limitations and honest limits

The decoder's line is a tool's line, and it is worth being precise about it. Common named entities decode; obscure ones are left as they are. That is a statement about this decoder, offered as a practical test, not a claim that an obscure name is invalid everywhere. A browser may know a name this tool leaves alone. The lesson runs the other way: a spelling that only some tools resolve is a fragile spelling, and the numeric form is the one that resolves everywhere.

The encoder side has its own boundary. Encoding covers the five characters &, <, >, the double quote and the single quote. It will not turn a pasted © into &copy; for you, or into any other entity. If you want a symbol written as an entity, you choose the spelling yourself; the decoder's job is to verify it, and converting samples so they display as text is the encoder's separate job.

Common mistakes

  • Assuming every character has a name. The named set is finite. For a rarer symbol, check before you write the name into finished markup, or go straight to the numeric form.
  • Trusting an obscure name because it looks plausible. A name that decodes in one place may be left as raw text by another tool. Run it through the decoder test; if it comes back unchanged, switch to the number.
  • Writing a hex entity without the x. The form &#xA9; is hex because of the x. Leave it out and the number is read as decimal, which is a different character entirely.
  • Mixing forms at random in one document. Consistency is what keeps source readable. Named for the common symbols, numeric for the rest, applied the same way throughout, beats a patchwork.
  • Expecting the encoder to produce entity spellings for symbols. It encodes five characters only. Symbols stay symbols unless you write the entity yourself.

FAQs

What is the difference between &#169; and &copy;? None in effect: both are the copyright sign. The numeric form works everywhere; the named form is easier to read.

Does the decoder understand hex entities? Yes. Decoding understands common named entities like &copy; and &nbsp;, decimal entities like &#169; and hex entities like &#xA9;.

What happens if I use an obscure named entity? The decoder leaves obscure named entities as they are, so the raw entity text is what you get back. If a name is obscure enough to fail that test, write the character in numeric form instead.

Can the encoder turn a symbol like © into an entity for me? No. Encoding covers the five characters &, <, >, the double quote and the single quote. A symbol you paste stays a symbol. If you want its entity spelling, write it yourself and check it with Decode entities.

Which form should generated output use? Numeric. A generator cannot rely on a name existing for every character it emits, while the decimal or hex form can represent any Unicode character.

Conclusion

Named and numeric entities print the same characters; they differ in coverage and in how they read. Keep the named form for the common symbols you and your readers recognise, and switch to the numeric form the moment a name is missing, obscure or machine-generated. When the encoded text itself is the problem, because a sample needs to display on a page as text, the companion guide on how to display code samples on a web page covers that job, and the rest of this series lives in the Developer Tools guides archive.