HTML Entity Encoder
Encode or decode HTML entities in text.
About the HTML Entity Encoder
Convert reserved HTML characters like <, >, &, and quotes into safe entities, or decode HTML entities back into plain text. Optionally encode every non-ASCII character as a numeric entity.
Popular uses
- html
- entity
- encode
- decode
- escape
Examples
Encode markup
HTML<div>Hi & "bye"</div>Output
HTML<div>Hi & "bye"</div>Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Base32 Encoder
Encoders & Crypto
Encode or decode text using RFC 4648 Base32.
Base64 Encoder
Encoders & Crypto
Encode or decode text to/from Base64, UTF-8 safe.
URL Encoder
Encoders & Crypto
Encode or decode strings using encodeURIComponent/encodeURI.
JWT Decoder
Encoders & Crypto
Decode a JWT's header and payload, and check expiry.
Basic Auth Header Generator
Encoders & Crypto
Build or decode an HTTP Basic Authorization header.
File Base64 Encoder/Decoder
Encoders & Crypto
Convert any file to a Base64 data URI, or decode Base64 back to a file.
Works well with
Next steps from other categories.
String Escaper
Dev Utilities
Escape and unescape strings for JSON, JS, HTML, XML, SQL, RegExp, and shell.
JSON String Escape
JSON
Escape special characters for use inside a JSON string.
Csv To Markdown Table
Converters
Convert CSV into a Markdown or HTML table with alignment options.
HTML to PDF Converter
PDF & Documents
Turn pasted HTML into a print-ready page you can save as PDF.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser