Free HTML Entities Encoder & Decoder
Runs locallyUpdated October 25, 2026
Escape reserved HTML characters (<, >, &, ", ') into safe character entities or decode escaped markup locally in your browser.
How to use HTML Entities Encoder / Decoder
Paste raw HTML tags, code snippets, or entity-encoded text (<div>) into the input box.
Choose Encode to convert reserved characters into HTML entities, or Decode to restore raw characters.
Copy the result into your <pre><code> documentation blocks or HTML attribute values.
Escape and unescape HTML character entities in your browser
Displaying raw HTML tags inside a blog tutorial or embedding special characters inside <meta content="..."> attributes requires replacing reserved delimiters with HTML character entities. Use this free HTML entities encoder and decoder to convert snippets locally in your browser.
Essential HTML character entities reference table
| Raw Character | Named Entity | Decimal / Hex Reference | Where Escaping Is Mandatory |
|---|---|---|---|
< (Less than) | < | < / < | Inside visible <code> blocks so the browser doesn't open a real HTML tag |
> (Greater than) | > | > / > | Pairing with < inside code examples and text nodes |
& (Ampersand) | & | & / & | Inside <title>, attributes, and XML sitemaps |
" (Double quote) | " | " / " | Inside double-quoted HTML attributes like content="..." |
' (Single quote) | ' / ' | ' / ' | Inside single-quoted HTML attributes |
Formatting full HTML templates? Pair this tool with our HTML minifier / beautifier and SEO meta tag generator.
HTML Entities Encoder / Decoder FAQs
< (<), > (>), & (&), double quote " ("), and single quote/apostrophe ' (' or ').Related Code & Developer Tools
More code & developer tools and nearby utilities.
HTML Minifier / Beautifier
Collapse whitespace to minify HTML snippets or pretty-print nested markup locally in your browser with no server uploads.
Open tool →MD5 Hash Generator
Compute 128-bit (32-character hexadecimal) MD5 checksum digests locally in your browser for non-cryptographic deduplication and legacy integrations.
Open tool →SHA-256 Hash Generator
Compute 256-bit (64-character hexadecimal) SHA-256 cryptographic hashes locally in your browser using the native Web Crypto API (crypto.subtle.digest).
Open tool →Color Picker & Converter
Pick a color visually or enter a #HEX code to convert instantly between HEX, rgb(), and hsl() CSS color tokens.
Open tool →