🟢 AgentArena🔴 ColdForge💜 DemoForge🟠 LaunchLoom🔵 PromptForge🟣 SkillSmith⚙️ Sovereign SEO

HTML Entities

Encode special characters to HTML entities or decode them back.

Input: 0
Output: 0
Entities: 0

Common HTML Entities

Click any entity to copy the code

About the HTML Entities Encoder & Decoder

HTML entities let you show characters that would otherwise be interpreted as markup — like <, >, &, and quotes — safely inside a web page. This tool encodes text into entities and decodes entities back to plain characters, instantly and in your browser.

It's a staple for anyone writing HTML by hand, pasting code into a page, or debugging why a snippet renders wrong.

How to use it

  1. Paste your text or entity-encoded string.
  2. Choose encode or decode.
  3. Copy the converted output.
  4. Toggle direction to reverse it.

How it works

Encoding replaces reserved and non-ASCII characters with their named or numeric entity equivalents (so < becomes &lt; and © becomes &copy;), which stops browsers from mistaking content for tags. Decoding turns those entities back into the characters they represent.

Because it runs locally, you can safely encode code samples or user-supplied text before embedding them, without sending anything to a server — the same escaping that prevents display bugs also helps you avoid injecting raw markup.

Worked example

Encoding '<div class="x">' yields '&lt;div class=&quot;x&quot;&gt;', which you can paste into a page to show the tag literally instead of rendering it — exactly what you need when documenting HTML.

Frequently asked questions

When do I need HTML entities?

Whenever you want to display characters like <, >, or & as text rather than have the browser treat them as markup.

Named or numeric entities?

The tool uses standard entities; both named and numeric forms decode correctly.

Is my text uploaded?

No — encoding and decoding happen entirely in your browser.

Does it handle emoji and accents?

Yes — non-ASCII characters encode to their numeric entities and back.

Free and multilingual?

Yes — 25 languages, free to use.

Related tools

URL EncoderBase64JSON FormatterAll free tools