Encode and decode HTML entities with named, numeric, and hex modes.
Free online HTML entities encoder and decoder supporting named entities (&, <, >, ", '), decimal numeric character references (&), hexadecimal entities (&), and minimal XSS escaping. Features a searchable reference table of all 2,100+ standard HTML5 named character references categorized by basic XML delimiters, Latin diacritics, punctuation, mathematical operators, directional arrows, currency symbols, and Greek letters. Provides real-time bidirectional conversion, Unicode code point lookup, character category classification, copy-ready code snippets, and gzip-compressed shareable state. Operates 100% client-side in your browser with zero network transmission for complete privacy.
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, html character reference, xss escaping tool, html entity converter
Tags: html, entities, encode, decode, entity, special-characters, xss, escape
HTML Entities Encoder/Decoder is also known as: HTML Escape Tool, HTML Unescape Tool, HTML Entity Decoder, HTML Entity Encoder, HTML Character Reference Finder, Special Character Escaper, HTML5 Entity Table.
Paste or type your raw HTML markup or text into the input panel on the left.
Select your action: choose "Encode" to convert special syntax characters into HTML entities, or "Decode" to unescape entities back into human-readable characters.
Choose your target encoding mode: Named Entities (&) for readability, Decimal (&#nnn;) for universal XML/HTML compatibility, Hexadecimal (&#xnn;) for Unicode alignment, or Minimal for strict 5-character XSS escaping.
Review the generated output instantly in the right-hand panel, or press ⌘↵ (Mac) / Ctrl+Enter (Windows) to manually trigger conversion.
Use the searchable Entity Reference Table below the editor to look up code points, hex values, descriptions, and named aliases for 2,100+ standard HTML5 entities.
Click "Copy" or press ⌘⇧C to copy the output to your clipboard, or click "Share" to generate a gzip-compressed URL for collaborating with your team.
Bidirectional encoding & decoding: convert special characters to HTML entities or unescape entity strings back to UTF-8 text.
4 distinct encoding modes: Named Entities (&), Numeric Decimal (&), Numeric Hexadecimal (&), and Minimal Essential escaping (&, <, >, ", ').
Comprehensive HTML5 entity table: instant search and filtering across 2,100+ standard W3C/WHATWG named character references.
Full Unicode & astral plane support: encodes and decodes code points beyond BMP (U+10000+), including emojis and mathematical alphanumeric symbols.
Minimal XSS escape set: cleanly targets only the five core delimiters (&, <, >, ", ') without inflating overall document size.
Real-time auto-conversion: recalculates encoded/decoded strings on keystroke without lag.
Category filtering: isolate entities by Basic Delimiters, Punctuation, Math, Directional Arrows, Currency, Greek Letters, and Symbols.
Character inspection: reveals decimal code point, hexadecimal representation, entity alias, and descriptive name for every symbol.
One-click per-entity copying: copy individual entity strings directly from the reference table.
Shareable state: compresses input text and options into compact gzip URL query parameters for reproducible bug reports.
100% client-side execution: pure in-browser JavaScript with zero server uploads, keeping sensitive HTML payloads and tokens private.
Native keyboard navigation: ⌘↵ to process, ⌘⇧C to copy output, ⌘⇧K to clear canvas.
The HTML Entities Encoder/Decoder supports 5 syntax formats and dialects for accurate parsing and processing.
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.
Master HTML entity encoding, numeric character references, context-aware XSS escaping in body vs attributes vs JS, and HTML5 named entity parser rules.
Demystify percent-encoding rules, avoid double-encoding pitfalls, master + vs %20 space representations, and serialize complex nested objects and arrays for REST query strings.
Master XML formatting standards, well-formedness rules vs XSD validation, namespace resolution, CDATA handling, and server-side XXE attack prevention.
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.
The Open Graph protocol enables web pages to become rich graph objects on social networks like Facebook, LinkedIn, Discord, and Slack using semantic meta tags.
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.