HTML Entities Encoder
HTML entities are escape sequences that represent characters which are either reserved in HTML (<, >, &), invisible (non-breaking space), or hard to type directly (©, ™, ←, ✓). The ZTools HTML Entities tool is a comprehensive reference and converter: search the full HTML5 named entity table by name, number, or character; convert any character to its named, decimal numeric (©), or hex numeric (©) entity form; and decode any entity back to its character. Built-in copy buttons make it fast to look up → or © and paste the right entity into your HTML.
Use cases
Inserting special characters into HTML without typing them
Need an em-dash (—), copyright symbol (©), or arrow (→) in your HTML? Search the entity table, click Copy, paste. Faster than memorizing entity names or hunting through Unicode tables.
Identifying mystery entities in HTML source
You see → in a stranger's HTML and wonder what it renders as. Paste into the decoder; the tool shows the character (→) and its name (→).
Standardizing entity style across a codebase
Some files use ©, others use ©, others use © — all valid, all equivalent. Convert all to one style for consistency in code review and grep.
Building or debugging an entity-aware text editor
When implementing rich-text features (like Notion-style "type -- and get —"), the entity table tells you which character → entity mappings to support. The reference is built from the official HTML5 spec.
How it works
- Search by character, name, or number — Type "©", "copy", or "169" to find the copyright entity. Real-time filter narrows the table as you type.
- Click any row to see all forms — Named (
©), decimal (©), hex (©), and the literal character. Each has a copy button. - Use the bidirectional converter — Paste raw text → see all characters with HTML-special meaning highlighted with their entities. Or paste entity-laden text → see the decoded form.
- Toggle between named and numeric output — Named entities are more readable (
€); numeric entities are universal (€). Choose based on your downstream consumer. - Copy with one click — Each entity row has a copy button for the format you need. Pastes anywhere — code editors, CMS WYSIWYG, terminal.
Examples
Input: Look up "copyright"
Output: Named: © | Decimal: © | Hex: © | Character: ©
Input: Decode: 5 × 3 ≤ 16
Output: 5 × 3 ≤ 16
Frequently asked questions
When do I need to use HTML entities?
Always for &, <, >, ", ' inside HTML body or attributes. Optional for other characters in modern UTF-8 documents — write them literally. Use entities for non-typeable characters (←, ✓) or when sending HTML through systems that may corrupt UTF-8.
What's the difference between named and numeric entities?
Named entities like © are human-readable but limited to ~2,200 characters in HTML5. Numeric entities like © work for any Unicode code point (1.1M+ characters). Named entities are slightly shorter for common chars; numeric entities are universal.
Are HTML entities case-sensitive?
Yes — &Copy; and © are different entities (uppercase Copy is a math symbol; lowercase is the © character). When in doubt, copy from a reference table.
Do I need to use entities for emoji?
No — emoji are plain UTF-8 characters. Save your file as UTF-8 (the modern default), declare <meta charset="UTF-8">, and emoji render directly. Entity-encoding emoji wastes bytes.
How many HTML entities exist?
HTML5 defines ~2,200 named entities. Numeric entities can address all 1.1M+ Unicode code points.
Why might my entity not render?
Most common cause: typo in the name (&abcd; is invalid). Other causes: missing semicolon, browser caching, or an XHTML doctype that requires strict syntax.
Tips
- Prefer numeric entities for non-Latin scripts (more reliable across legacy parsers).
- Always include the trailing semicolon — some parsers tolerate its absence, but it's a syntax error per spec.
- For modern UTF-8 documents, only encode
<,>,&,",'— write everything else as literal characters. - Use named entities for documentation's sake (
€is readable;€is opaque).
Try it now
The full HTML Entities Encoder runs in your browser at https://ztools.zaions.com/html-entities — no signup, no upload, no data leaves your device.
Last updated: 2026-05-05 · Author: Ahsan Mahmood · Edit this page on GitHub