WMW

HTML Entity Converter

Free

Convert 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.

Comments (0)

Found this tool useful? Leave a comment, share a tip, or tell us how we can make it better.

Guest comments are reviewed before publishing. Sign in to post instantly.

No comments yet. Be the first to share your thoughts!

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 (&amp; becomes &amp;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

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; &#233; and &#xE9; 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;amp; or &amp;lt; instead of the intended characters, or cleaning up entity-encoded text copied from a CMS or scraped webpage.

Related Tools