URL-Encode Text Data
This tool will URL-encode the text data you specify. The encoded version of the data can be used within URLs for browser address bars. (PHP code used for this widget is presented below the widget.)
Type the characters to URL-encode:
(If the data you type to encode and the resulting encoded version are identical, then no encoding was necessary.)
Below is PHP code that does URL encoding. If you would like to use the PHP code for yourself, it may be used as is or modified. Also, the rawurlencode()
function may be used in other PHP scripts you might develop.
<?php echo( rawurlencode("DATA TO ENCODE") ); ?>
Replace DATA TO ENCODE
with the data you want to encode.
Put the PHP script on your server and type it's URL into your browser's address bar.
The script will respond with properly encoded data.
Will Bontrager