Toolbox for developers / Text to HTML entity

HTML entity decode and encode

This tool allows you to encode and decode text to HTML entity.

Copy and paste, drag and drop a text file or directly type in the editors above.

Note: This tool only encode non-ASCII and unsafe characters.


TEXT
HTML Entity


About HTML Entity

HTML (Hypertext Markup Language) is the standard markup language for creating web pages.

When should you use HTML entities?
Some characters are reserved in HTML, and must be replaced with character entities. Special characters can also be replaced by entities.
For example, character "<" is reserved in HTML, and must be encode.

There are two formats for HTML Entities: &name; and &#number;
For example for & character : &amp; &#38;

We use the javascript API https://github.com/mathiasbynens/he/blob/master/he.js to encode and decode html entities.


You can report a bug or give feedback by adding a comment (above) or by clicking "Contact us" link (at the top right hand corner of the page).

Comments







The tools are provided "as is", without warranty of any kind, either express or implied.