Text and developer tools
HTML entity encoder and decoder
Encode HTML’s five special characters or decode semicolon-terminated named and numeric character references locally.
Runs in your browser. Inputs stay on this page and are not uploaded or added to the URL.
Your result
How to use this tool
Encoding replaces ampersand, less-than, greater-than and both quotation marks so ordinary text can be represented as HTML text. Decoding reads complete named references supported by your browser and decimal or hexadecimal numeric references. It does not execute or render decoded HTML.
Decoding makes one pass: &lt; becomes <, not a less-than sign. Unknown names and references without a semicolon remain unchanged. Numeric references follow HTML replacement rules for invalid scalars and legacy C1 controls. Entity encoding is not a general-purpose sanitizer for scripts, CSS or arbitrary HTML.
Worked example
Text A & B encodes as A & B. The reference 😀 decodes to 😀.
References and method
Contifield is an independent utility site. Reference publishers do not endorse this tool.
Related tools
Punycode and IDN domain converter
Convert an internationalized domain between Unicode and ASCII Punycode with browser URL processing and round-trip validation.
Unicode code point inspector
Inspect Unicode code points, UTF-16 units, UTF-8 bytes and all four normalization forms: NFC, NFD, NFKC and NFKD.
IPv4 CIDR and subnet calculator
Calculate an IPv4 network, subnet mask, wildcard, address range and host count with explicit /31 and /32 handling.