HTML & Markup

HTML Entity Encoder / Decoder

Convert special characters into HTML entities, or turn named and numeric entities back into readable text. Everything runs in your browser — your input never leaves the page.

Runs in your browser v1.0.0

Mode & options

live
Direction

Named style prefers entities such as & and ©, and always writes the apostrophe as ' for the widest support.

Input

plain text

Type or paste text. Results update as you type.

Output

entities

Copy, download, or share a link to reproduce this result.

How it works

Encoding replaces &, <, >, " and ' with safe entities and can optionally convert non-ASCII characters too. Decoding understands decimal (&#38;) and hexadecimal (&#x26;) numeric references plus common named entities. Invalid or unrecognised entities are left exactly as they were and listed below the output, so nothing is silently corrupted. All processing happens in this page — there are no network requests.