Encode and decode URLs in your browser
Paste text to percent-encode it for a URL, or paste an encoded string to decode it back — the result updates as you type. Choose whether to encode a single value or a whole URL, switch direction with one click, and copy the result. Everything runs in your browser: no upload, no signup, offline-capable.
What is URL encoding?
A URL may only contain a limited set of ASCII characters (RFC 3986). Percent-encoding replaces every other character with % followed by its byte value in hex — a space becomes %20, & becomes %26, ä becomes %C3%A4. This is what lets search queries, parameters and file names with spaces or symbols travel inside a link without breaking it.
Encode a value vs. a whole URL
- Encode value (
encodeURIComponent) escapes everything, including& = ? / :. Use it for one query parameter value or a single path segment. - Encode whole URL (
encodeURI) keeps the characters that give a URL its structure (& = ? / : #). Use it for a complete address that just needs its spaces and accents escaped.
Picking the wrong one is a common bug: encoding a full URL with the "value" mode turns its ? and & into %3F and %26, breaking the link.
Decoding and error handling
Decoding turns %XX sequences back into characters. If the input contains a malformed sequence — a lone % or an invalid code like %ZZ — the tool shows an error instead of guessing, so you never copy a silently wrong result.
Private by default
Your input is encoded and decoded locally with your device's own resources. Confidential URLs, tokens and parameters are never sent to a server — the tool even works in airplane mode.