HTML Entity Encoder & Decoder
Encode convertible characters into HTML entities and decode HTML entities into characters
Features
Both encoding and decoding
Convert special characters and entities to and from each other
Entity output in 3 formats
Choose from named, decimal, or hexadecimal
Reliably convert special characters
Correctly handles ampersands and angle brackets
Preserves unsupported characters like Japanese
Avoids unnecessary conversion with the named format
How to use
Select the conversion direction with tabs
Choose the encode or decode tab to decide the conversion direction
Enter the target text
Paste the text or HTML entities you want to convert into the input field
Select the entity format
When encoding, specify the output format from named, decimal, or hexadecimal
Copy the converted result
Get the result shown in the output field with the copy button
Use cases
Preventing garbled text on web pages
Turn special characters into entities to avoid broken display in advance
Posting code in articles
Safely display source code to show tags as they are
Adjusting email HTML
Turn body text containing symbols into entities so it displays correctly in any environment
Decoding entity strings
Convert received entities back to the original characters to check the content
Basic Knowledge
What are HTML Entities (Character References)?
HTML entities are replacement notations used to display characters with special meaning in HTML, such as "<" and "&", exactly as they appear on screen. For example, by writing "<" as "<", it can be displayed without being misinterpreted as the start of a tag.
Three Ways to Write Entities
- Named Reference:A named reference is a format that uses names assigned to characters, such as <, and is characterized by being easy for humans to read and infer the meaning.
- Decimal Reference:A decimal reference is a format that writes character codes in decimal, such as <, and can represent characters that do not have assigned names.
- Hexadecimal Reference:A hexadecimal reference is a format that writes character codes in hexadecimal, such as <, and is easy to cross-reference with Unicode notation such as U+003C.
Safety and Privacy
Runs entirely in your browser
Your input data is processed only within your browser and is never sent externally.
Processing only in your browser
encoding and decoding is processed entirely within your browser, and input data is not sent to any server.
Communications encrypted with HTTPS
Page loading is also encrypted by TLS, and content cannot be read by third parties.
No transmission to third parties
Input content is not sent to external services such as ad networks or trackers.
No automatic saving of results
conversion results and input suggestions are not stored on the server.