D DevKit

HTML Entities Encoder & Decoder

Escape and unescape HTML entities — local and private.

100% client-side No upload Free · no signup

What is HTML Entities?

HTML entity encoding turns characters like < > & " into safe equivalents (&lt; &gt; &amp; &quot;) so they render correctly and prevent XSS when injecting user input.

How to use

  1. Paste your text or HTML.
  2. Pick Encode or Decode.
  3. Copy the output.

Frequently asked questions

Which entities does it cover?

All named HTML5 entities plus numeric character references.

Is this safe for sanitizing user input?

Encoding is one step. For full XSS protection use a sanitizer like DOMPurify in your render pipeline.