URL Encoder / Decoder
Encode text for use in URL query strings (Percent-encoding) or decode encoded URLs.
Understanding URL Encoding
URL encoding (or Percent-encoding) converts characters into a format that can be transmitted over the Internet. Unsafe ASCII characters are replaced with a % followed by two hexadecimal digits.
- Space becomes
%20 - / (Forward slash) becomes
%2F - ? (Question mark) becomes
%3F
Tips
- Use Encode when you have a piece of text (like a search query or name) that you want to put inside a URL parameter.
- Use Decode when you see a messy URL with lots of % signs and want to read the original content.
You might also like
Frequently Asked Questions
URLs can only contain a limited set of characters (ASCII). Characters like spaces, question marks, and non-English letters must be encoded (replaced with % followed by hex digits) to be safely transmitted over the internet.
This tool uses 'encodeURIComponent' which encodes all characters with special meaning (like /, ?, &, =). This is safer for encoding individual query parameters. 'encodeURI' leaves characters needed for a full URL (like : and /) alone.
Yes, you can perfectly reverse the process using the Decode feature, unless the original data was malformed.