About HTML Entity Encoder/Decoder
Turn text into HTML entities when it has to go into HTML without being read as markup: a code sample in a blog post, a product name with an ampersand in a template, a visitor's comment you're about to show on a page, or a value in an XML or RSS feed. By default only the five special characters & < > " and ' are escaped, which is all a page needs to show them as text.
Choose to encode every non-ASCII character as well, and 你 becomes 你 as a decimal entity or 你 in hex, useful for old systems and email templates that mangle UTF-8. Named entities such as © are the third style. Decoding understands any named or numeric entity, so , " and ' in scraped or exported text turn back into ordinary characters. Everything runs in your browser and nothing is uploaded.
How to use HTML Entity Encoder/Decoder
- 1Pick the direction
Encode text into entities, or decode entities back into text.
- 2Set what to escape
Only the five special characters, or every non-ASCII character too.
- 3Choose the entity style
Named, decimal or hex. In decimal 你 is 你, in hex 你.
- 4Copy the result
Paste it into your template, post or feed.
Why use Cubfile for this
- Two levels of escaping
Just & < > " and ', or every character outside ASCII, including Chinese and emoji.
- Named, decimal or hex
Choose names like © or numeric codes like 你 and 你.
- Decodes any entity
Named and numeric entities, decimal or hex, all turn back into characters.
- Private and offline
Runs in your browser, uploads nothing and keeps working offline once loaded.