
For authors publishing reserved characters or developers reading encoded markup, HTML Entities moves safely between code and visible text.
Convert reserved characters to HTML entities or decode them back into readable text when needed. You get the result directly in your browser.
With the sample fragment, encoding should turn angle brackets and the ampersand into HTML entities. Decoding should then restore the original text, which lets you check that the round trip stays consistent.
Input
<p>Hello & welcome</p>Output
<p>Hello & welcome</p>Encoding and decoding take place in your browser. The content you enter stays on your device and is not sent to any outside service.
Some characters, such as angle brackets and the ampersand, have special meaning in HTML. Replacing them with entities prevents them from being read as markup when you want to display them.
Decoding is useful for reading an encoded content block, fixing imported text or restoring the readable form of a fragment before editing it.
Not always. Encoding only reserved characters is often enough and keeps the code easier to read. The full option can be useful for a specific test.
No. Encoding entities is not enough to secure a page and does not replace careful validation of displayed content. Use it to turn reserved characters into entities so they display as text. Review the output before copying it into your editor. The operation happens in your browser and the content stays on your device.
Decoding can bring reserved characters back, so check the context before reusing the result. It is useful for reading encoded content, fixing imported text or restoring the readable form of a fragment before editing it. Review the output in your editor and confirm those characters are safe in their new location. Encoding and decoding take place in your browser.