URL encoder and decoder
Percent-encode text for a URL or query string, decode it back, or convert to and from Base64, entirely in your browser.
Encoded text
Runs on your device
Encoding and decoding happen entirely in your browser. Nothing you type is sent to a server.
Common URL encodings
| Character | Encoded | Character | Encoded |
|---|---|---|---|
| Space | %20 or + | ! | %21 |
| # | %23 | $ | %24 |
| & | %26 | = | %3D |
| ? | %3F | @ | %40 |
How it works
URL encoding replaces characters that are not allowed in a URL with a percent sign followed by two hex digits, using standard RFC 3986 rules. Base64 is a separate, unrelated encoding that represents any bytes as plain letters, digits, plus, and slash, often used to embed data in text formats.
- Pick a method
URI, Component, or Base64.
- Type or paste text
The result updates as you type.
- Decode when needed
Edit the result and click Decode to reverse it.
encodeURI vs encodeURIComponent
encodeURI encodes a full URL and leaves characters like /, ? and & intact because they have meaning in URL structure. encodeURIComponent encodes a single value within a URL and also escapes those structural characters. Use Component when encoding a query parameter value, and URI when encoding a complete address.
What %20 means
%20 is the percent-encoded representation of a space character. When a URL contains a space, browsers convert it to %20, or sometimes a plus sign in query strings. You will often see %20 in file paths or search queries such as example.com/my%20document.
Not encryption
URL encoding and Base64 are text transformations, not encryption or hashing. Anyone can reverse them. Never put passwords or secret tokens in a URL, encoded or not, since URLs are stored in browser history and server logs.
Frequently asked questions
What is URL encoding and why do I need it?
URL encoding replaces characters that are not allowed in a URL with a percent sign followed by two hex digits. For example, a space becomes %20 and an ampersand becomes %26. This is required when passing special characters in query parameters or form data so browsers and servers interpret the URL correctly.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL and leaves characters like /, ? and & intact because they have meaning in URL structure. encodeURIComponent encodes a single value within a URL and also escapes those structural characters. Use encodeURIComponent (the Component method) when encoding query parameter values.
How do I decode a URL that has percent signs in it?
Paste the percent-encoded text into the encoded text box and click Decode back to plain text. The tool converts %20 back to spaces, %26 back to &, and all other percent sequences back to their original characters. This is useful for reading tracking URLs, debugging API responses, or decoding shared links.
What does %20 mean in a URL?
%20 is the percent-encoded representation of a space character. When a URL contains a space, browsers convert it to %20 or sometimes a plus sign in query strings. Both encoding methods here handle plain spaces the same way.
Does this tool also do Base64 encoding?
Yes. Choose the Base64 method to encode text into Base64, or paste Base64 text and click Decode back to plain text to reverse it. Base64 is a different encoding from URL percent-encoding, commonly used for embedding binary-like data in text such as email attachments or data URLs.
Is this URL encoder safe for use with passwords or sensitive data?
The tool runs entirely in your browser and does not transmit your input to any server. However, URL encoding and Base64 are not encryption or hashing; they are text transformations that anyone can reverse. Never put passwords or secret tokens in a URL, encoded or not, as URLs are stored in browser history and server logs.