URL Encoder & Decoder
Encode text for safe use in URLs and decode percent-encoded strings back. Handles full URLs and individual query components.
How to use the URL Encoder & Decoder
- Choose the scope. Encode a whole URL, or just one query value that sits inside one.
- Paste and read. The result updates as you type, in both directions.
Frequently asked questions
- What is the difference between encoding a URL and a component?
- Encoding a whole URL preserves the characters that give it structure, such as the slashes and the question mark. Encoding a component escapes those too, which is what you want for a value going inside a query parameter.
- Why do spaces sometimes become %20 and sometimes a plus sign?
- Percent encoding turns a space into %20. The plus sign comes from HTML form submission, which uses a slightly different encoding for the query string. Both appear in the wild, so decoders must expect either.
- Which characters actually need encoding?
- Everything outside letters, digits and a small set of marks such as hyphen, underscore, dot and tilde. Reserved characters like the ampersand, equals sign, slash and question mark must be escaped when they appear inside a value.
- Does this handle accents and emoji?
- Yes. Characters outside ASCII are converted to UTF-8 bytes first and then percent encoded, which is what the URL standard requires and what servers expect.
Related tools
- Developer Tools
Base64 Encoder & Decoder
Encode text to Base64 and decode it back, right in your browser. Handles Unicode correctly and never sends your data anywhere.
- Developer Tools
HTML Entity Encoder
Encode text into HTML entities or decode entities back to characters. Escapes the five characters that break markup, safely in your browser.
- Developer Tools
JSON Formatter
Format, validate and minify JSON in your browser. Paste messy JSON, get readable output with a clear message when something is wrong.
- Developer Tools
JWT Decoder
Decode a JSON Web Token to inspect its header and payload, and check the expiry — all in your browser, with no token ever sent.
- Developer Tools
Password Generator
Generate strong random passwords in your browser. Choose the length and character types, then copy — nothing is ever sent over the network.
- Developer Tools
SHA Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text, computed in your browser with the built-in Web Crypto API.
Last updated