HTML/URL encoder

eol > br
num > nbsp
all > nbsp

HTML encoded

Special characters like ←, <, † and é are 'escaped' in HTML: they are written in a different (longer) form -or encoded- so that they can be interpreted by browsers in the correct way. For an overview of all the special characters in HTML, see the HTML character map.

&laquo;Int&eacute;rn&acirc;tio&ntilde;&aring;lis&acirc;ti&ograve;n&raquo; &ccedil;an b&ecirc; &ldquo;&lt;&copy;&reg;&euro;z&yen;&gt;&rdquo;

For developers: PHP: htmlentities($text)Python: xml.sax.saxutils.escape(text)Ruby: coder.encode(string, :named)Perl: encode_entities($text)ASP: Server.HtmlEncode(Text)Java: escapeHtml4(Text)

URL encoded

Special characters like (, <, ' ' (space) and é are 'escaped' before passing as an URL parameter (what follows after the ? in an URL like search.php?text=risqu%C3%A9 ). For an overview of all the special characters in HTML, see the HTML character map.

%C2%ABInt%C3%A9rn%C3%A2tio%C3%B1%C3%A5lis%C3%A2ti%C3%B2n%C2%BB %C3%A7an b%C3%AA %E2%80%9C%3C%C2%A9%C2%AE%E2%82%ACz%C2%A5%3E%E2%80%9D

For developers: PHP: urlencode($text)Python: urllib.quote_plus(text)Ruby: CGI.escape(string)Perl: url_encode($text)ASP: Server.URLEncode(Text)Java: URLEncoder.encode(Text)

Examples