Another spelling of the same bytes
Write characters as decimal entities
Every character becomes an &#number; entity.
Decoding reads those decimal entities and leaves no other markup.
The work stays in this tab.
This tool runs in your browser. Turn on JavaScript to use it.
HTML numbers
The sample is fixed. It uses the same rule as the form.
- Input
- Hi
- Result
- Hi
How to use it
- 1Paste the text.
- 2Choose encode or decode.
- 3Copy the result.
Good to know
- Named entities such as & belong on the HTML entity page.
- This page does not upload the text.
- Text longer than one hundred thousand characters is rejected.
Questions
Does the result leave this browser?
No. The calculation finishes in the current tab.
What does this page leave out?
Named entities such as & belong on the HTML entity page.
What if the input is huge?
Past one hundred thousand characters, the page stops and asks you to shorten it.
Related tools
- HTML entity encode and decode
Browsers treat < as the start of a tag. If the characters are meant to be seen, the HTML source needs < instead. This page writes that source. It does not render it.
- Inspect Unicode code points
A character you see may be one code point or several. This page lists the first 80 code points, with U+ notation, decimal, UTF-8 bytes, and a JavaScript escape.
- Escape XML text
The five characters & < > " ' become named entities.