URL Encoder & Decoder
Percent-encode and decode URLs and query components safely.
Runs entirely in your browser — your input never leaves your deviceAbout this tool
URL (percent) encoding escapes characters that have special meaning in a URL — spaces, ampersands, question marks and non-ASCII characters — so query strings and path segments stay valid. This tool encodes and decodes as you type using the same logic asencodeURIComponent.
It is the quick fix when a link breaks because of a stray space or & in a parameter. Everything runs locally in your browser.
Why use it
Component-safe encoding
Percent-encodes everything unsafe in a URL value, like encodeURIComponent.
Live both ways
Encode and decode instantly with a swap button.
Private
Runs entirely in your browser.
Common use cases
- Fix a link broken by a space or &
- Build a safe query-string value
- Decode an encoded URL to read it
- Prepare a parameter for an API call
Frequently asked questions
What does this encode?
It percent-encodes everything that is unsafe in a URL component — equivalent to JavaScript's encodeURIComponent — so it is ideal for individual query-string values.
Why did decoding fail?
The input contains an invalid percent sequence (for example a lone % not followed by two hex digits). Fix the malformed sequence and try again.
Is my data private?
Yes — encoding and decoding happen entirely in your browser and nothing is uploaded.
Component vs full-URL encoding?
This tool encodes URL components (values), which also escapes characters like & and = that you usually want escaped inside a single parameter.