Replace special characters with HTML Entities - Online tool

Enter/paste text to HTML Escape:

Replace newline with <br/>
Replace < > "
Replace space with &nbsp;
Escape special characters (& and non latin chars)

Escaped result with HTML entities:



Why replace special characters with html entities?

< and > is used to identity tags in HTML, but they are not the only ones that are problematic.

Every character with an UTF-8 code above 127 is not interchangeable between the "normal" Western ISO-8859-1 encoding and UTF-8.
A solution could be to always encode text using UTF-8, but browsers, proxies, web servers etc. is a potential encoding disaster waiting to happen.
The HTML entities however, will always work.

Which characters should I replace in HTML?

If you are using UTF-8 encoding, replacing < , > and &quout; should be enough for most cases. However, it is recommended to replace all characters with a character code above 127.

HTML5 image batch resizing

Try our new HTML5 image batch resizing tool for Google Chrome at:
DropDoGet.com