Developer Tools

HTML Encode / Decode

HTML Encoder converts characters like <, > and & into safe HTML entities (and back), so you can display code or untrusted text without breaking your markup.

Last updated: July 2026

Encode HTML special characters to entities or decode entities back to text. Free, instant, in-browser HTML entity encoder/decoder.

HTML Encode / DecodeRuns in your browser

Loading tool…

How to use HTML Encode / Decode

  1. Paste your text or HTML.
  2. Choose Encode or Decode.
  3. Copy the result.

Frequently asked questions

Why encode HTML?

Encoding special characters prevents them from being interpreted as markup, avoiding broken layouts and XSS when displaying user content.

Which characters are encoded?

The HTML-significant ones: <, >, &, " and '.

Is it free?

Yes, free and fully in-browser.

Related developer tools