URL Encoder / Decoder
Turn text into percent-encoding that is safe to use in a URL, or decode an encoded URL back to readable text.
DeveloperResult
Encoded
kahve%20%26%20%C3%A7ay%20%3D%205%20TL%3F
- Input length
- 19 characters
- Output length
- 40 characters
How does it work?
URL Encoder / Decoder converts text to percent-encoding safe to carry in a URL, or does the reverse. 'Component' scope (encodeURIComponent) encodes a single piece of a URL, like a query parameter's value or a path segment, and also encodes characters with special meaning in a URL like space, &, =, ?, /. 'Full URL' scope (encodeURI) keeps the URL's own structure — https://, / ? & — intact and only encodes characters that aren't valid anywhere in a URL. Both scopes use UTF-8 encoding, so accented characters encode and decode correctly. Example: encode 'kahve & çay = 5 TL?' in Component scope and the result is 'kahve%20%26%20%C3%A7ay%20%3D%205%20TL%3F' — the space becomes %20, '&' becomes %26, and 'ç' becomes the two-byte UTF-8 sequence %C3%A7. Encode the same text in Full URL scope and '&' and '=' are left alone since they're treated as part of the URL's structure: 'kahve%20&%20%C3%A7ay%20=%205%20TL?'. Use this tool to safely add a search query or user input to a URL, correctly encode a query parameter in an API request, or make a %-encoded string you see in a log file or browser address bar readable again.
Formula
Space → %20 ç → %C3%A7 & → %26 (in component mode)
Example
kahve%20%26%20%C3%A7ay%20%3D%205%20TL%3F
Similar Tools
Toolbox Get your Toolbox ready.
Star the tools you use most and, with an account, they follow you to every device.
Frequently asked questions
What's the difference between component and full URL?
Component mode (encodeURIComponent) also encodes & = ? / # and is what you use when putting a value into a URL. Full URL mode (encodeURI) leaves those alone and only encodes characters that aren't valid anywhere in a URL.
Is '+' the same as %20?
In form data '+' means a space; in URL paths it doesn't. That's why decoding has it as an option.
How are accented characters encoded?
They're converted to UTF-8 bytes and each byte is percent-encoded separately; for example 'ç' is a two-byte UTF-8 character, so it becomes %C3%A7.
What happens if I try to decode invalid percent-encoding?
The tool shows an error; an incomplete sequence like '%C3' or a non-hex one like '%ZZ' isn't valid UTF-8 encoding and can't be decoded.
When should I use Full URL scope instead of Component?
Use Full URL when your text is already a complete URL and you only want to encode the invalid characters inside it without breaking its structure; use Component when you're inserting a single value into a URL.