HTML Entity Encode
Paste HTML or text below and click Encode to escape special characters as HTML entities. All processing happens locally in your browser.
What is HTML Entity Encoding?
HTML entity encoding converts special characters into their HTML entity equivalents to prevent them from being interpreted as HTML markup. For example:
<→<>→>&→&"→"'→'
This prevents XSS attacks and ensures text displays correctly in HTML documents.
The scope setting is the one that matters. Encoding only what breaks HTML keeps the text readable and is right for anything a person will edit again. Encoding everything above ASCII produces output that survives a pipeline stuck on a single-byte character set, at the cost of a much larger file. The invisible option is worth a run whenever a heading looks wrong for no reason: a non-breaking space or a zero-width joiner that arrived with a copy and paste shows up as a named reference you can actually see.
Related tools
Is the markup fighting you?
Escaped entities, mangled encodings and content that renders one way in the CMS and another on the page usually mean something in the pipeline is guessing. We build front ends and the publishing path behind them, so what you write is what a visitor sees.
Talk to us about your site