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.

%D0%92%D1%81%D0%B5 %D0%BB%D1%8E%D0%B4%D0%B8 %D1%80%D0%BE%D0%B6%D0%B4%D0%B0%D1%8E%D1%82%D1%81%D1%8F %D1%81%D0%B2%D0%BE%D0%B1%D0%BE%D0%B4%D0%BD%D1%8B%D0%BC%D0%B8 %D0%B8 %D1%80%D0%B0%D0%B2%D0%BD%D1%8B%D0%BC%D0%B8 %D0%B2 %D1%81%D0%B2%D0%BE%D0%B5%D0%BC %D0%B4%D0%BE%D1%81%D1%82%D0%BE%D0%B8%D0%BD%D1%81%D1%82%D0%B2%D0%B5 %D0%B8 %D0%BF%D1%80%D0%B0%D0%B2%D0%B0%D1%85

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