Skip to content
§
§ · free tool

HTML entities encoder. Escape safely, decode instantly.

Escape text to HTML entities or turn named, decimal and hex entities back into readable characters — processed entirely in your browser, nothing uploaded.

A free online tool by Digital Heroes
Local only
Encoded

Text never leaves your browser — encoding and decoding run entirely on your device.

Common entities

Click any code to copy it.

Char Named Numeric Description

Entities, without the lookup tab

HTML entities let you show characters the browser would otherwise treat as markup — &lt; instead of a raw <, for example. Paste text and this tool escapes the five special HTML characters, or every non-ASCII character if you need maximum compatibility, choosing readable named entities like &copy; or compact numeric ones. Flip to Decode and it turns named, decimal and hex entities back into plain characters — including emoji and other astral-plane code points. Swap the result back in with one click to round-trip and verify. No account, nothing uploaded, free forever.

§ 02 · what you can do

Everything an encoder should do.

  • Encode special characters&, <, >, " and ' — to safe HTML entity form.
  • Encode all non-ASCII characters (accented letters, symbols, emoji) to numeric entities for maximum compatibility.
  • Decode HTML entities — named (&copy;), decimal (&#169;) and hex (&#xa9;) — back to plain text.
  • Swap encode and decode in one click to round-trip your content and verify correctness.
  • Choose named or numeric output: human-readable named entities like &amp;, or compact numeric ones.
  • Copy anything instantly — the result, or any code in the common-entities reference table with a single click.
§ 03 · how to use it

Five steps, no manual.

  1. Choose Encode or Decode with the toggle at the top.
  2. Paste or type your text into the left panel — the result appears instantly on the right.
  3. In encode mode, pick special characters only or all non-ASCII, and tick Prefer named entities for readable output.
  4. Hit Copy to grab the result, or click any code in the reference table to copy a single entity.
  5. Use Swap to feed the result back as input and round-trip your text for verification.
§ 04 · faq

Frequently asked questions.

Is the HTML Entities Encoder free?
Yes — completely free for everyone. No sign-up, no account and no usage limits.
Is it private? Is my text uploaded anywhere?
No upload, ever. Encoding and decoding run entirely in your browser on your own device — your text never leaves your computer.
What is the difference between named and numeric entities?
Named entities like &copy; are human-readable shorthands; numeric entities reference the character's Unicode code point directly, in decimal (&#169;) or hex (&#xa9;) form. This tool encodes to either style — tick "Prefer named entities" for readable output — and decodes all three.
Which characters should I always escape in HTML?
The five specials: ampersand (&amp;), less-than (&lt;), greater-than (&gt;), double quote (&quot;) and apostrophe (&#39;). They can be parsed as markup or break attribute values if left raw. The "Encode special only" mode escapes exactly those five and leaves everything else untouched.
Does it work offline?
Yes — once the page has loaded, encoding, decoding, swapping and copying all keep working without a connection, because every conversion runs locally in your browser.

Published · Last updated .

Online now

Hi there. How can we help you today?

Reply