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.

%D9%8A%D9%88%D9%84%D8%AF %D8%AC%D9%85%D9%8A%D8%B9 %D8%A7%D9%84%D9%86%D8%A7%D8%B3 %D8%A3%D8%AD%D8%B1%D8%A7%D8%B1%D9%8B%D8%A7 %D9%88%D9%85%D8%AA%D8%B3%D8%A7%D9%88%D9%8A%D9%86 %D9%81%D9%8A %D8%A7%D9%84%D9%83%D8%B1%D8%A7%D9%85%D8%A9 %D9%88%D8%A7%D9%84%D8%AD%D9%82%D9%88%D9%82

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