Escape HTML for safe display or decode entities when reading templated markup. Mode switches Encode and Decode on the same page.
About HTML Encode / Decode
Raw angle brackets in user content break pages and create XSS risk when rendered as HTML. Encoding turns them into entities browsers treat as text.
Decode is useful when you inherit entity-heavy strings from CMS exports, emails, or scrapers and need the readable form.
One hub covers both directions so docs and debugging stay in a single workflow.
How to Use HTML Encode / Decode
- Paste the HTML or text fragment.
- Choose Encode or Decode under Mode.
- Run the tool.
- Copy the escaped or restored string.
Encode before inserting untrusted text into HTML templates; decode only when you trust the source.