50FiftyTools 50 of 50 tools live

HTML Entities

Escape text for HTML, or turn & soup back into readable characters.

Processed in your browser — text never leaves this page.

Common questions

What are HTML entities?

Escape codes for characters that have special meaning in HTML: &lt; for <, &amp; for &, &quot; for ". Without them, the browser would interpret your < as the start of a tag.

When do I need to encode?

Whenever literal text goes into HTML: code examples on a page, user-generated content, attribute values. Encoding the five critical characters (& < > " ') is also a basic defense against HTML injection.

What does "encode non-ASCII" do?

Converts accented letters, symbols, and emoji to numeric entities (é → &#233;) — useful for systems stuck with ASCII-only encoding. Modern UTF-8 pages don't need it.

What can the decoder handle?

Named entities (&amp;, &mdash;, &copy;…), decimal (&#169;), and hex (&#x2122;) forms — pasted from page source, feeds, or database exports.

Related tools

13URL EncoderThe other escaping 12Base64 EncoderBinary-safe text 09JSON FormatterPretty-print & validate