URL Encoder & Decoder
Percent-Encoding
Encode and decode percent-encoded URL text for query strings, path segments, redirects, and API parameters.
What is this tool?
This URL encoder and decoder applies percent-encoding for URL components. Reserved characters, spaces, Unicode text, and punctuation are converted into %HH byte sequences so they can safely travel inside query strings, redirect parameters, path segments, and API calls.
The tool follows the browser's encodeURIComponent and decodeURIComponent behavior. That means spaces become %20, not +; a literal plus sign becomes %2B; and malformed percent sequences are rejected during decoding.
Use it for individual URL components rather than blindly encoding an entire URL. Encoding a complete URL can also encode separators such as :, /, ?, and &, which may not be what the receiving system expects.
How to use
- Open Encode for raw text or Decode for an existing percent-encoded value.
- Paste the URL component you want to transform, such as a query parameter value or redirect target.
- Run the conversion and copy the result.
- If decoding fails, look for malformed percent sequences such as
%ZZor incomplete UTF-8 bytes.
Examples
| Input / setting | Output | Notes |
|---|---|---|
hello world | hello%20world | Spaces become %20 in URL components. |
[email protected] | email%40example.com | The reserved @ character is percent-encoded. |
a+b=c | a%2Bb%3Dc | Literal plus and equals signs are protected for query values. |
a%2Bb%3Dc | a+b=c | The encoded value decoded back to readable text. |
Related tools & concepts
Last reviewed: 2026-05-08