HomeDev Tools › HTML Encode/Decode

HTML Entities Encode / Decode

Encode/decode HTML entities (& < ...). Prevents XSS when embedding text into HTML.

Encode/decode HTML entities (< & "…) to safely display HTML code on a page.

How to use HTML Encode/Decode

  1. Paste HTML or text.
  2. Choose encode/decode.
  3. Copy the result.
🔒 HTML Entities Encode / Decode runs entirely in your browser — the data you enter is not sent to any server. Free, no sign-up required. See145 free dev tools more.