HTML entity encode/decode · Guide

How to Escape HTML Online

Escaping HTML makes text safe to display. Here is the quick way to do it.

Paste and encode

Drop in the text or snippet containing angle brackets, ampersands or quotes. Encoding replaces each with its entity so the browser shows the literal characters.

Use the safe output

Paste the encoded text into your template or content where it should appear as plain text rather than markup.

Frequently asked questions

Can I use this for production work?

Yes, for inspection, formatting and quick generation. Still review the output before committing it to production code or configuration.

Ready to try it?

Open the free browser-based HTML entity encode/decode and apply what you just read — no sign-up, runs locally.

Open the HTML entity encode/decode tool