HTML Entities

Encode & decode entities

Open in workspace

HTML Entities: Encode & decode entities. A free, browser-based tool from DevToolbox that runs entirely on your own device: no upload, no account, no tracking.

About the HTML Entities

Escape text so it is safe to place inside HTML, or decode entities back to the characters they stand for.

Conversion is a two-step trip: your input is decoded from the source format into a plain in-memory value, then re-encoded into the target format. Round-tripping a value through both directions returns what you started with, apart from formatting that the target format cannot express.

What you can do with it

  • HTML entity encoder
  • HTML entity decoder
  • HTML special characters
  • Encode HTML entities
  • Decode HTML entities

How to use it

  1. Paste your input into the input pane.
  2. Pick the direction you want: encode or decode, source format or target format.
  3. The converted result appears immediately in the output pane.
  4. Use Copy to take the result, or pipe it into another tool from the workspace.

Questions

Which characters need escaping?
At minimum & < > in text content, plus " and ' inside attribute values. Escaping those five prevents markup injection in the common cases.
Is my data uploaded anywhere?
No. The tool is JavaScript that runs in the tab you already have open, and DevToolbox has no backend to send anything to. You can open the network tab and watch: after the page and its script load, nothing is sent while you work.

The HTML Entities sits in Encoders & Converters, one of the 90 tools on DevToolbox.