HTML Entities Converter
Encode special characters into HTML entities, or decode HTML entities back into readable text.
Your files are processed locally in your browser. They are not uploaded to our servers.
How to use
- Type or paste your text or HTML into the box.
- Click "Encode" to convert special characters into HTML entities, or "Decode" to convert entities back into plain text.
- Copy the result.
What is this tool?
HTML Entities Converter replaces characters that have special meaning in HTML — like &, <, >, " and ' — with their entity equivalents (&, <, and so on), or reverses the process to decode entities back into readable characters. This is useful whenever you need to safely display text that might otherwise be interpreted as HTML markup.
Common uses
- Preparing user-generated text to be safely embedded in HTML
- Decoding entity-encoded text copied from a webpage or API response
- Debugging why special characters appear incorrectly on a page
- Converting non-ASCII characters into numeric HTML entities
Related tools
FAQ
Which characters get encoded?
The core HTML special characters (&, <, >, " and ') are converted to named entities, and any character outside the standard ASCII range is converted to a numeric entity.
Is this the same as URL encoding?
No. HTML entity encoding is specifically for safely embedding text within HTML markup, while URL encoding (percent-encoding) is for safely including text within a URL — they use different character sets and escape formats.
Is decoding safe from malicious content?
Decoding here only extracts plain text — it never renders the input as live HTML on the page, so it's safe to decode untrusted entity-encoded text.