🏷️ HTML Entity Encoder

Escape or unescape HTML special characters and entities

✓ Runs entirely in your browser — your data never leaves this device

About This Tool

Escape or unescape HTML special characters (& < > quotes) to/from entities, preventing code snippets from being parsed by the browser. A everyday tool for web dev and publishing.

How to Use

  1. Paste code or text containing special characters
  2. Click Escape (encode) or Unescape (decode)
  3. Copy the result into your HTML or source

FAQ

Why escape HTML?

Unescaped <script> and tags get executed/misparsed, breaking the page and risking XSS.

Which characters are supported?

The common entities: & < > both quote styles and non-breaking space.