Encode or decode a URL
Encode text for safe use in URLs or decode percent-encoded strings, with component and full-URL modes. Swap and copy in one click. Free.
- Files never leave your device
- Free, no sign-up
- No watermark
About URL Encoder & Decoder
Make text safe to put in a URL, or turn a percent-encoded string back into readable text. Choose component mode, which works like encodeURIComponent and encodes everything for query parameter values, or full-URL mode, which works like encodeURI and keeps the URL structure intact. Swap input and output, copy the result and move on.
How to use URL Encoder & Decoder
- 1
Paste text or a URL.
- 2
Choose encode or decode.
- 3
Pick component or full-URL mode.
- 4
Copy the output.
Why use this tool
- Encode and decode in one place.
- Component and full-URL modes.
- Swap input and output.
- Clear error for invalid percent sequences.
- Instant results.
Frequently asked questions
For values inside a query string, such as ?q=hello%20world, so characters like & and = are encoded.
For a whole URL that should keep its ://, ?, & and # characters.
URLs cannot contain spaces, so they are percent-encoded. In form data a space may also appear as +.
Yes. Sequences such as %C3%A9 decode to é.
Replacing unsafe characters with % followed by their hexadecimal byte value.
No. Everything is processed in your browser tab. Nothing you type or paste is sent to CodeMites or any other server.
Yes. There is no account, no watermark and no usage limit. The tool runs in your own browser, so there is no server cost to charge you for.
Yes. It runs in any modern browser on Android and iOS as well as on Windows, macOS and Linux, with nothing to install.
Yes, once the page has loaded. Everything runs in your browser, so you can keep working on a train or plane without a connection.
No. URL encoding replaces unsafe characters with %XX codes, while Base64 re-encodes the whole value.
Related tools
All Developer tools →- URL ParserBreak a URL into protocol, host, port, path, query parameters and fragment, with decoded values in a table.
- HTML Entity EncoderEncode special characters to HTML entities or decode entities back to text, with named, decimal or hex formats and a reference table.
- Regex TesterTest regular expressions with live match highlighting, capture groups, flags and a quick-reference cheat sheet.
- Cron Expression BuilderBuild cron expressions with dropdowns, read them in plain English and preview the next run times.
- Chmod CalculatorSet Unix file permissions with checkboxes and get the octal value, symbolic notation and chmod command.
- CIDR CalculatorCalculate network address, broadcast, host range, subnet mask and host count from CIDR notation, with binary view.