HTML Encoder
Escape characters for use as plain text in HTML.
Your input is processed locally in this browser tab.
How to use HTML Encoder
Paste markup, text snippets, or attributes that must render as literal text inside HTML.
Choose whether to escape single/double quotes and whether to encode non-ASCII characters as hex entities (&#x…;).
Copy the entity-escaped output ready for HTML templates or code blocks.
Frequently asked questions
Which ASCII characters are always escaped?
Ampersands (&), less-than (<), and greater-than (>) are always escaped; quotes (" and ') are escaped when Escape quotes is checked.
How are emojis handled when Encode non-ASCII is enabled?
Astral Unicode characters like emojis are emitted using their full Unicode code point, such as 🦊.