Encode and decode HTML entities with named, numeric, and hex modes.
Free online HTML entities encoder and decoder. Encode special characters to HTML entities for safe display in HTML documents, or decode HTML entities back to regular characters. Supports four encoding modes: named entities (&, <, etc.), numeric decimal (&#nnn;), numeric hex (&#xnn;), and minimal encoding for essential characters only. Browse a searchable table of 100+ common HTML entities organized by category — basic symbols, punctuation, math, arrows, currency, and Greek letters. Search by entity name, character, description, or code point. Runs entirely in your browser — no data is ever sent to a server.
Keywords: html entities encoder, html entities decoder, html entities encode, html entities decode, encode html entities, decode html entities, html entity table, html entity list, named entities, numeric entities, hex entities, html special characters, html escape, html unescape, quot entity, amp entity, lt gt entities, html entities online, free html entities encoder
Tags: html, entities, encode, decode, entity, special-characters
Paste or type your text into the input area on the left.
Choose your action: Encode to convert special characters to HTML entities, or Decode to convert entities back to characters.
Select your encoding mode: Named Entities (like &) for maximum readability, Decimal Numbers (like &) for universal compatibility, or Hexadecimal (like &) for compact representation.
Click Process or press ⌘↵ (Mac) / Ctrl+Enter (Windows) to convert your text instantly.
Browse the Entity Reference Table to search and explore all 2,100+ HTML5 entities by name, character, or category.
Copy the result with ⌘⇧C, or share via a gzip-compressed shareable URL.
Encode special characters to HTML entities: converts &, <, >, " and ' to their named or numeric entity equivalents.
Decode HTML entities back to characters: converts &, &, & and 2,100+ other named entities to readable text.
3 encoding modes: Named Entities (&) for readability, Decimal Numbers (&) for compatibility, Hexadecimal (&) for compactness.
Full Unicode support: encode any Unicode character including emoji, CJK characters, mathematical symbols, and accented letters.
Auto-detect mode: automatically identifies whether your input contains entities to decode or special characters to encode.
Entity Reference Table: searchable, filterable table of all 2,100+ HTML5 entities grouped by category (symbols, punctuation, accented letters, Greek, mathematical).
Entity search: type any character, entity name, or code point to find matching entities instantly.
Category filters: show only Symbols, Punctuation, Letters, Diacritics, Greek, or Mathematical entities.
Per-entity copy: click any entity in the reference table to copy just that entity to your clipboard.
Encode all mode: converts every non-ASCII character to numeric entities for maximum compatibility with legacy systems.
Smart encode mode: only converts characters that require escaping in HTML (&, <, >, "), leaving regular text untouched.
Character analysis: shows Unicode block, category, and code point for any character.
Batch processing: encode or decode multiple lines of text at once.
Shareable URLs: gzip-compresses your input and settings into a URL for sharing with teammates.
Works entirely in your browser — no text is ever sent to any server. Your content stays completely private.
Keyboard shortcuts: ⌘↵ to process, ⌘⇧C to copy, ⌘⇧K to clear.
Strip DOM boilerplate, convert complex HTML tables and semantic trees into clean Markdown, slash RAG embedding token costs by 60–80%, and preserve critical context for LLMs.
Master Open Graph protocol, Twitter Card meta tags, dynamic OG image generation, and crawler cache invalidation across Slack, Discord, Twitter/X, and LinkedIn.
Demystify percent-encoding rules, avoid double-encoding pitfalls, master + vs %20 space representations, and serialize complex nested objects and arrays for REST query strings.
HTML is the standard markup language for creating web pages and web applications, structuring content through semantic elements and the DOM.
HTML entities are coded character strings starting with an ampersand and ending with a semicolon used to render reserved and special characters in HTML.
URL encoding (percent-encoding) is an RFC 3986 mechanism that converts reserved or unsafe characters in a URI into a percent sign followed by two hex digits.
XML is a flexible, tag-based markup language standardized by the W3C for storing and transporting structured, machine-parseable hierarchical data.