HTML Encoder and Decoder
Encode or decode HTML entities.
Result
The result will appear here.
How to use it
- Choose Encode or Decode.
- Type or paste your text or HTML.
- Copy the result.
About this tool
This tool converts characters that have special meaning in HTML, like the angle brackets and ampersand, to and from their entity forms. Encoding escapes the five core characters so text displays literally rather than as markup. Decoding handles the named core entities plus numeric and hex entities, so it covers common cases rather than the full named entity list.
Examples
Input
<b>Tom & Jerry</b> (encode)Output
<b>Tom & Jerry</b>Input
<p> (decode)Output
<p>Common uses
- Escape HTML so code shows as text
- Decode entities from scraped HTML
- Safely display user text in a page
- Inspect entity encoded markup
FAQ
Is anything sent to a server?
No. Encoding and decoding run in your browser. Nothing is uploaded.
Which entities are covered?
The five core entities for encoding, and named core plus numeric and hex entities for decoding.
Does it decode every named entity?
No. It handles the common ones and numeric forms, not the full named entity list, so rare names may pass through unchanged.
Related tools
Developer
JSON Formatter
Format, validate, beautify, and minify JSON.
Open toolDeveloper
Base64 Encoder and Decoder
Encode text to Base64 or decode it back.
Open toolDeveloper
Password Generator
Generate strong random passwords with length and character options.
Open toolDeveloper
UUID Generator
Generate v4 UUIDs in bulk.
Open toolDeveloper
URL Encoder and Decoder
URL-encode or decode percent-encoded strings.
Open toolEmbed this tool
Paste this snippet to put the tool on your own site. It runs entirely in the visitor's browser, the same as it does here.