DevFlow logoDevFlow
ToolsPipelinesExploreDocsPricing
⌘F
DashboardPipeline BuilderAnalytics

Try Pro — Free 7 days

No credit card required

HTML Entities Encoder/Decoder Online — Free Encode & Decode HTML Entities

How to HTML Entities Encoder/Decoder Online

  1. 1

    Paste or type your text into the input area on the left.

  2. 2

    Choose your action: Encode to convert special characters to HTML entities, or Decode to convert entities back to characters.

  3. 3

    Select your encoding mode: Named Entities (like &) for maximum readability, Decimal Numbers (like &) for universal compatibility, or Hexadecimal (like &) for compact representation.

  4. 4

    Click Process or press ⌘↵ (Mac) / Ctrl+Enter (Windows) to convert your text instantly.

  5. 5

    Browse the Entity Reference Table to search and explore all 2,100+ HTML5 entities by name, character, or category.

  6. 6

    Copy the result with ⌘⇧C, or share via a gzip-compressed shareable URL.

HTML Entities Encoder/Decoder Features

  • ✓

    Encode special characters to HTML entities: converts &, <, >, " and ' to their named or numeric entity equivalents.

  • ✓

    Decode HTML entities back to characters: converts &amp;, &#38;, &#x26; and 2,100+ other named entities to readable text.

  • ✓

    3 encoding modes: Named Entities (&amp;) for readability, Decimal Numbers (&#38;) for compatibility, Hexadecimal (&#x26;) 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.

Frequently Asked Questions

What are HTML entities?
HTML entities are codes used to represent special characters in HTML that would otherwise be interpreted as HTML syntax. For example, &lt; represents < and &amp; represents &. They ensure that browsers display special characters correctly rather than parsing them as HTML tags or attributes. Entities can be named (&quot;), decimal (&#34;), or hexadecimal (&#x22;).
Is this HTML entities tool free?
Yes, DevFlow HTML Entities Encoder/Decoder is completely free with no usage limits. All encoding and decoding runs directly in your browser — no account or signup required.
Is my data safe?
All processing happens entirely in your browser using pure JavaScript. No text is ever transmitted to a server or stored anywhere outside your browser. Your content stays completely private on your machine.
What is the difference between named, decimal, and hex entities?
Named entities use descriptive codes like &amp; (ampersand) and &lt; (less-than). They are the most readable but only a limited set is defined. Decimal entities use base-10 numbers like &#38; — universally supported but less readable. Hexadecimal entities use base-16 like &#x26; — compact and widely supported. All three represent the same character.
When should I use HTML entities?
Use HTML entities when inserting special characters into HTML documents: & in text (&amp;), < in code examples (&lt;), > closing brackets (&gt;), " quotes in attribute values (&quot;), and ' apostrophes (&#39;). Also use entities for accented characters (é → &eacute;) when your document encoding doesn't support them directly.
What is the difference between Encode and Encode All?
Smart Encode (default) only converts characters that are reserved in HTML (&, <, >, ", ') — leaving regular letters, numbers, and punctuation untouched. Encode All converts every non-ASCII character to numeric entities — useful for maximum compatibility with legacy systems or when you need to guarantee that output contains no special Unicode characters.
How many HTML entities are there?
HTML5 defines over 2,100 named entities, including all standard Latin letters with diacritics, Greek letters, mathematical symbols, currency symbols, punctuation marks, and more. The Entity Reference Table in this tool lets you browse and search all of them.
Can I decode numeric entities to their character?
Yes. The Decode action converts any numeric entity (decimal or hexadecimal) back to its Unicode character. For example, &#x1F600; decodes to 😀. It also decodes named entities like &nbsp; to the non-breaking space character.
Does it handle emoji and Unicode?
Yes. Emoji and other Unicode characters outside ASCII can be encoded to numeric entities. For example, 😀 becomes &#x1F600; or &#128512;. The Entity Reference Table includes emoji and other non-BMP characters with their code points.
Does it work offline?
Yes. All encoding, decoding, and entity reference data is bundled with the page as pure JavaScript. Once the page has loaded, the HTML Entities tool works without an internet connection.

Related Developer Tools

  • HTML FormatterFormat, minify, and validate HTML with attribute sorting and template support.
  • URL Encoder/DecoderEncode, decode, and parse URLs and query strings instantly.
  • Markdown PreviewPreview and render Markdown with GFM, math, Mermaid diagrams, and export options.