⭐ Click the star in your address bar to bookmark this page ×
Home Developer & Code Tools HTML Entity Converter

HTML Entity Converter — Encode & Decode Online Free

Convert special characters like <, >, &, and quotes to HTML entities and back. Paste your text, encode or decode in one click. Free, no signup, runs in your browser.

✓ Free Forever✓ No Signup✓ Encode & Decode✓ 100% Private
0 characters
0 characters
or

Common Entities — click to insert

What an HTML Entity Converter Does

Some characters are reserved in HTML. A browser reads < and > as the start and end of tags, and & as the start of an entity — so if you want those symbols to appear as literal text, they have to be written as entities (&lt;, &gt;, &amp;).

The HTML Entity Converter handles this both ways. Encode turns special characters into their entity form so they display correctly instead of being parsed as markup. Decode does the reverse — turning entities back into readable characters. Flip on "Live update" to convert as you type, or use the buttons for a single conversion.

When You'd Use It

Showing code examples. Writing a tutorial that includes HTML tags? Encode them so the markup displays on the page instead of rendering. This is the most common reason people reach for an entity converter.

Special symbols. Characters like €, £, ©, ®, and math symbols encode cleanly so they render consistently across browsers and email clients.

Safer output. Encoding user-submitted text before displaying it is a basic defense against breaking your layout or injecting unwanted markup. Note: this tool is a convenience for content, not a substitute for proper server-side escaping in an application — always escape untrusted input on the server too.

Step-by-Step

1

Paste your text

Plain text goes in the left box; HTML entities go in the right box.

2

Encode or decode

Click "Encode →" to convert plain text to entities, or "← Decode" for the reverse.

3

Or use Live update

Toggle it on to convert automatically as you type in either box.

4

Copy the result

Select the output and copy it into your page, post, or editor.

Features

🔁

Both Directions

Encode plain text to entities and decode entities back to text.

Live Update

Optional real-time conversion as you type in either box.

📑

Quick Reference

Click a common entity to insert it straight into your text.

⌨️

Keyboard Shortcuts

Ctrl/Cmd + Enter to convert, Ctrl/Cmd + L to toggle live update.

🔒

100% Private

Conversion happens in your browser — your text is never uploaded.

📊

Character Count

Live character counts for both the input and the output.

Frequently Asked Questions

Is the HTML Entity Converter free?
Yes, completely free with no account or download. Convert as much text as you like.
What's the difference between encoding and decoding?
Encoding turns special characters (like < and &) into entities so they display as text. Decoding turns entities back into the original characters.
Which characters get converted?
The reserved HTML characters <, >, and & are always encoded, along with quotes and other symbols as needed so your text displays exactly as written.
Is this a substitute for server-side escaping?
No. It's a convenience for preparing content. In an application, always escape untrusted user input on the server as well — don't rely on a manual step for security.
Is my text stored?
No. Everything is converted in your browser, so your text is never uploaded or tracked.
Does it work on mobile?
Yes. It runs in any modern browser on phone, tablet, or desktop — no app to install.