HTML Entity Encode / Decode
Encode and decode HTML entities online. Escape and unescape HTML characters.
How to Use HTML Entity Encode / Decode
- 1Select "Encode" or "Decode" mode using the toggle.
- 2Paste your HTML or plain text into the input field.
- 3The converted result with encoded or decoded entities appears instantly.
- 4Click "Copy" to copy the result to your clipboard.
Frequently Asked Questions
What are HTML entities?
HTML entities are special sequences that represent reserved or invisible characters in HTML. For example, < represents "<" and & represents "&". They prevent the browser from interpreting characters as markup.
When should I encode HTML entities?
Encode HTML entities whenever you display user-generated content or embed special characters in HTML. This prevents cross-site scripting (XSS) attacks and ensures the content renders correctly.
Does this handle all named HTML entities?
Yes. The tool supports all standard named entities (like ©, —, €) as well as numeric and hexadecimal character references.
Is my data sent to a server?
No. All encoding and decoding is performed locally in your browser. Your data never leaves your device.
Related Tools
Base64 Encode / Decode
Encode and decode Base64 and Base64URL strings online. Toggle between standard Base64 and URL-safe Base64URL with real-time conversion.
URL Encode / Decode
Encode and decode URLs online. Percent-encoding and decoding for query strings.
JWT Debugger
Decode, inspect and verify JSON Web Tokens. View claims with OIDC descriptions, verify signatures with HS256/RS256/ES256, and auto-fetch public keys from OIDC issuers.