URL Encoder/Decoder
Encode or decode URL components.
About this tool
The URL Encoder/Decoder converts special characters to percent-encoded format safe for use in URLs, and decodes percent-encoded strings back to readable text. It's essential for building query strings, handling form submissions, and debugging API calls.
How it works
- Choose Encode or Decode mode.
- Paste your URL or query string component into the input.
- The encoded or decoded result appears instantly.
- Copy the output to use in your application or browser.
Example use cases
- Query parameter with spaces: Encode 'hello world' to 'hello%20world' for safe use in a URL query string: ?q=hello%20world
- Decode a redirect URL: Decode a percent-encoded redirect_uri parameter in an OAuth callback to see the full destination URL.
Frequently asked questions
What is the difference between %20 and + for spaces?
%20 is the RFC 3986 standard encoding for a space in a URL. The + sign represents a space in application/x-www-form-urlencoded format (HTML form submissions). Which to use depends on the context.
Should I encode the entire URL or just parts of it?
Encode only the values of query parameters and path segments, not the full URL including scheme, host, and slashes.