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.

すべての人間は自由と尊厳と権利の平等で生まれる

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.

%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E4%BA%BA%E9%96%93%E3%81%AF%E8%87%AA%E7%94%B1%E3%81%A8%E5%B0%8A%E5%8E%B3%E3%81%A8%E6%A8%A9%E5%88%A9%E3%81%AE%E5%B9%B3%E7%AD%89%E3%81%A7%E7%94%9F%E3%81%BE%E3%82%8C%E3%82%8B

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