Developer Tools

HTML entities

Encode or decode HTML characters. The result is text, not a live page.

In the browser

Encoding happens in this tab. The result is text, not a live page.

About this tool

Turn < and & into safe HTML text, or turn entities back into characters.

Use encode when you want to show code on a page without the browser running it. The characters &, <, >, quotes, and apostrophes become entities.

Use decode when a feed or export stored the text already escaped and you need the original characters. Decoding does not execute a page.

This is not a formatter and it does not fetch a URL. Pair it with the HTML formatter if you also want indentation.

Quick steps

  1. Paste the text.
  2. Encode or decode.
  3. Copy the result into your editor.

The text stays in this browser tab.

FAQ

Will encode stop a script from running?

It escapes the characters. You still review what you publish.

Does decode run the HTML?

No. The result is text in the box.

A useful next step

Site policies: Privacy · Terms