HTML Entity Converter
FreeConvert text to and from HTML entities in both directions at once, with decimal or hexadecimal numeric formats and a quick-reference table of common entities.
Runs entirely in your browser. Your text is never uploaded anywhere.
Type in either field, the other updates automatically.
Encoding Options
Applies to non-ASCII characters. The five reserved HTML characters (< > & " ') always use their named entities.
Recent Activity
Visible to everyone. Last 20 uses across all visitors, newest first.
No activity yet. Be the first.
What this tool does
This tool converts text to and from HTML entities in both directions at once: type plain text and it encodes to entities live, or paste entity-encoded text and it decodes back to plain text instead. Choose decimal or hexadecimal numeric entities for non-ASCII characters, and use the quick-reference table for common symbols.
How It Works
Encoding replaces the five HTML-reserved characters with their standard named entities (& becomes &amp;, for example) and every other non-ASCII character with a numeric entity in your chosen format. Decoding runs the opposite direction using the browser's own HTML parser (via DOMParser) in a detached, inert document, which correctly resolves every official HTML5 named entity as well as numeric entities, without executing any scripts or loading any resources.
Problems it solves
- Safely embedding special characters or user-submitted text inside HTML or XML source.
- Decoding entity-encoded text copied from a CMS, RSS feed, or scraped webpage back into readable text.
- Converting between decimal and hexadecimal numeric entity formats.
- Looking up the entity code for a common symbol without searching documentation.
Frequently asked questions
›Why do only 5 characters get named entities, not all of them?
Only &, <, >, ", and ' have reserved meaning in HTML markup itself (they open tags, close attributes, or start entities), so only they strictly need named entities to appear literally on a page. Every other character is encoded numerically here, which works identically in every browser and every HTML version, even for characters that don't have a widely-recognized name.
›Decimal or hexadecimal, does it matter which I pick?
No, both represent the exact same character and render identically; é and é are the same é. Decimal is more common in hand-written HTML, hexadecimal is more common when the value comes from a programming context (since Unicode code points are usually written in hex, like U+00E9).
›Does decoding handle every possible HTML entity?
Yes. Rather than relying on a hand-maintained list, decoding is handled by your browser's own built-in HTML parser, the same one that renders every webpage you visit, so it correctly resolves all several thousand officially defined HTML5 named entities plus any numeric decimal or hexadecimal entity.
›Is it safe to paste HTML from an untrusted source into the decoder?
Yes. Decoding uses a detached, inert document created by the browser's DOMParser, which never executes scripts, loads images, or renders anything, it only reads the resulting text content back out.
›When would I actually need this?
Common cases include displaying user-submitted text safely inside an HTML page without it being interpreted as markup, embedding special characters or symbols in HTML/XML source, debugging a page that is showing literal &amp; or &lt; instead of the intended characters, or cleaning up entity-encoded text copied from a CMS or scraped webpage.
Related Tools
Text
Excel To HTML Table Converter
Paste from Excel or Google Sheets, or upload a .xlsx/.xls/.csv file, and get a clean HTML table with a live preview, optional styling, and numeric column alignment.
FreeText
HTML Validator
Check HTML for unclosed tags, duplicate IDs, deprecated elements, and other common well-defined issues, verified with its own tag-matching parser, not a full W3C conformance validator.
FreeText
Base64 Encode/Decode
Encode text to base64 or decode base64 back to text, live as you type, with full Unicode support and an optional URL-safe variant.
FreeText
Number Base Converter
Convert a number between binary, octal, decimal, hexadecimal, BCD, Gray Code, and any custom base from 2 to 36, all at once from a single input.
FreeText
Bcrypt Hash Generator Checker
Generate and verify bcrypt password hashes entirely in your browser using WebAssembly, with an adjustable cost factor and salt.
FreeText
Bionic Reading Converter
Convert any text into bionic reading format by bolding the first portion of each word to help you read faster and focus better.
FreeText
Blake2b Hash Generator
Compute the BLAKE2b hash of text or a file in your browser, with adjustable output length and optional keyed hashing (MAC).
FreeText
Caesar Cipher Tool
Encrypt or decrypt text with a classic Caesar cipher, with an A-Z mapping table, brute-force list, letter-frequency chart, and ROT13 shortcut.
Comments (0)
Found this tool useful? Leave a comment, share a tip, or tell us how we can make it better.
No comments yet. Be the first to share your thoughts!