URL Encode / Decode
Encode or decode URLs and query parameters
Enter text and click Encode/Decode to convert
About This Tool
URL encoding (also known as percent encoding) converts special characters in a URL into a format that can be safely transmitted over the internet. Characters like spaces, ampersands, slashes, and non-ASCII characters are replaced with a percent sign (%) followed by two hexadecimal digits. This is essential when constructing query parameters for API requests, handling user input in URLs, or working with APIs that expect properly encoded request strings. Improperly encoded URLs can lead to broken links, failed API calls, or security vulnerabilities such as injection attacks. Our free online URL encoder and decoder handles all reserved and unreserved characters according to RFC 3986, including multibyte UTF-8 characters, so you can safely process internationalized URLs and complex query strings.
How to Use
- Paste the URL or text string you want to encode into the input field. This can be a full URL, a query parameter value, or any text containing special characters.
- Click "Encode" to convert the string using percent encoding. Spaces will be converted to %20 (or + depending on the mode), and all special characters will be replaced with their encoded equivalents.
- To decode a URL-encoded string, paste it into the input and click "Decode". The tool will convert all percent-encoded sequences back to their original characters.
- Use the encode component option to encode only specific query parameter values without encoding the entire URL structure, preserving slashes, colons, and other structural characters.
Frequently Asked Questions
Examples
Encode Query Parameters
Encode special characters in URL query parameters
https://example.com/search?q=hello%20world&category=food%26drinkDecode Encoded URL
Convert percent-encoded characters back to readable text
https%3A%2F%2Fexample.com%2Fpath%3Fname%3DJohn%20DoeEncode Form Data
Prepare data for application/x-www-form-urlencoded submission
email=user%40example.com&message=Hello%2C%20how%20are%20you%3F