relivo

HTML Entity Encoder and Decoder

Turn markup into escaped entities so it shows as text, or decode entities back.

Runs in your browser — nothing is uploaded

When you need this

Any time markup should be shown rather than rendered: a code sample in a blog post, a tag name inside documentation, or user-submitted text you are about to put on a page. Escaping < and & is also the oldest and most effective defense against cross-site scripting.

The five that matter

Only &, <, >, the double quote and the apostrophe genuinely need escaping in HTML. The ampersand has to go first — escape it last and you end up with &amp;lt;. Everything else, umlauts included, is fine as-is in a UTF-8 document, which every page should be.

Encoding everything non-ASCII

The third option escapes accented and non-Latin characters too, as numeric references. You rarely need it now, but it still helps for systems stuck on an older character set, or email templates passing through software you do not control.

How decoding works here

Decoding hands the text to the browser's own HTML parser, so all two-thousand-odd named entities are recognized rather than a common few. The value is read back as text and never inserted into this page, so pasting markup here cannot run anything.

Need the whole website, not just the snippet?

Describe it in a sentence and relivo builds it — free until you put it online.

See how