Data tool
URL Encoder and Decoder
URL encode text so it is safe in a link, or URL decode an encoded address back into readable text.
Runs entirely in your browser. Nothing you paste is uploaded.
URL breakdown
How to use the URL Encoder / Decoder
- Choose Encode or Decode.
- Paste your text or URL. When encoding, pick whether it is a single value or a whole URL.
- Copy the result. For full URLs, the breakdown table lists the host, path and each query value.
URL encoding: a single value or a whole URL
A URL encoder replaces characters that are not allowed in a web address with percent codes, such as %20 for a space. A URL decoder turns those codes back into readable text. This tool does URL encode and URL decode in one place.
URLs can only contain a limited set of characters. Everything else, including spaces, &, = and non-English letters, has to be written as percent-encoded bytes like %20.
Use A single value when the text will sit inside a query parameter or path segment: it encodes reserved characters such as /, ? and & so they cannot be mistaken for URL structure. Use A whole URL to clean up a complete link without breaking the parts that make it a link.
Decoding is forgiving. A stray % that is not a valid sequence is left as written and reported, instead of failing the whole string.
Common questions
How do I decode a URL online?
Paste the encoded URL and choose Decode. The readable address appears, with its host, path and query values listed separately.
What is the difference between %20 and + for spaces?
Both mean a space, but + is only valid in form-style query strings. %20 works everywhere in a URL, so it is the safer default.
Why did some characters not change?
Letters, digits and - _ . ~ are always safe in URLs, so they are never encoded.
Can I decode a URL that was encoded twice?
Yes. Decode it, then select Use result as input and decode again.
Is anything sent to a server?
No. Encoding and decoding run entirely in your browser.
Guides for the URL Encoder / Decoder
- URL Encoding Explained: Percent-Encoding, %20 and Query StringsURL encoding replaces unsafe characters with percent codes such as %20. Learn which characters need it, %20 versus +, and how to avoid double encoding.
- URL Query Parameters Explained: How They Work and Affect SEOURL query parameters explained: how the query string works, active vs passive parameters, the duplicate content they create and how to control it.
- The Anatomy of a URL: Every Part of a Web Address ExplainedThe parts of a URL explained with one example: protocol, subdomain, domain, path, query string and fragment, and why each one matters for SEO.
- Base64 Encoding Explained: What It Is and When to Use ItBase64 turns binary data into text so it can travel through text-only systems. How it works, why it adds 33 percent, and when not to use it.