Percent-encode URLs, query strings, and form data — or decode them back to readable text — instantly, free, with no signup and no data leaving your browser.
What is the URL Encoder Decoder?
URL encoding (percent-encoding) converts characters that are illegal or ambiguous in a URL — spaces, ampersands, question marks, non-ASCII text — into a % followed by two hexadecimal digits, like %20 for a space. This URL encoder decoder online tool converts in both directions: encode messy text into URL-safe form, or decode a percent-encoded string back into human-readable text.
You need encoding whenever user input, search terms, or international characters go into a query string, a redirect URL, or a POST body. An unencoded & inside a search term would be read as a parameter separator; an unencoded space breaks the URL entirely. Decoding is equally useful when you are staring at a %E4%B8%AD%E6%96%87 blob in an analytics report and want to know what page it actually was.
Encoding follows the standard encodeURIComponent rules used across the web, handling full Unicode correctly. Decoding reports a clear error if the input contains a malformed sequence such as a lone %. Everything runs locally — paste production URLs freely, since nothing is sent to any server.
A practical tip: encode early, decode late. Encode user input the moment it enters a URL you are building, and decode it only when you need to display or log the human-readable value. Keeping values encoded while they travel through redirects, JavaScript, and server logs avoids the classic bug where a decoded ampersand splits one parameter into two halfway through a flow.
How to use the URL Encoder Decoder
- Select Encode to make text URL-safe, or Decode to turn percent-encoded text back into readable form.
- Paste your URL, query string, or encoded blob into the input box.
- Run the conversion — spaces become %20, & becomes %26, Unicode becomes multi-byte sequences.
- Copy or download the result for use in links, redirects, or API calls.
- If decoding reports a malformed sequence, look for a stray % not followed by two hex digits.
URL Encoder Decoder use cases
Building search and filter URLs
User-typed search terms with spaces, quotes, or & must be encoded before appending to ?q=. Encode the term here, then concatenate it into your link or API request.
Debugging redirect chains
Marketing links and SSO flows nest URLs inside URLs, each layer encoded again. Decode repeatedly to peel the layers and see where a redirect actually lands.
Reading analytics data
Page paths with non-English slugs appear percent-encoded in server logs and analytics exports. Decode them in bulk to recover the real page titles and search terms.
Preparing form POST bodies
Application/x-www-form-urlencoded bodies encode every special character. Encode values here when hand-crafting test requests in curl or Postman.
Tips
- Encode only the value, not the whole URL — encoding ? and & in the structure itself will break the link.
- A + in a query string means a space in form encoding; this tool uses %20, which is unambiguous everywhere.
- Double-encoded text (%2520) means it was encoded twice — decode twice to recover the original.
- Browsers display decoded URLs in the address bar but copy the encoded form; decode here to see the true text.