
Encode and decode text or files to and from Base64.
Percent-encode or decode URLs and query strings safely.
Your files never leave your device. Everything runs in your browser.
URL Encoder percent-encodes any text so it can travel safely inside a URL, and decodes percent-encoded strings back to readable text. It applies the same rule as JavaScript's encodeURIComponent, which is what you need for query-string values, path segments, form fields and deep links that contain spaces, ampersands, accents or emoji.
Because the whole input is encoded as one value, characters that normally act as URL syntax — : / ? & = # — are encoded too. That is correct for a single value, but it means a complete URL comes back with its own separators escaped. Encode each query value separately when you want to keep the structure of a URL readable.
Encoding is UTF-8 based: a space becomes %20 and a non-ASCII character becomes one or more percent-escaped bytes. Decoding is the exact reverse, so any string produced by this tool can be pasted back in and restored.
hello world encodes to hello%20world.hello world & café becomes hello%20world%20%26%20caf%C3%A9; decoding that string returns the original text, including the ampersand and the accented é.https://example.com/a b?x=1&y=2 encodes to https%3A%2F%2Fexample.com%2Fa%20b%3Fx%3D1%26y%3D2, because :, /, ? and & are part of the value in this context.%2B. When decoding, %20 returns a space but a plain + is left as a plus, because this tool follows URL encoding rather than form encoding.encodeURI leaves URL syntax characters such as : / ? & = intact so a whole URL stays usable, while encodeURIComponent escapes them so the value can be inserted as a single parameter. This tool uses the encodeURIComponent rule, which is the right choice for query values.
%20 is the URL-standard encoding for a space. The + convention comes from HTML form submissions and works only in specific content types. This tool always emits %20, which is safe in every part of a URL.
No. A literal + is not valid percent-encoding for a space here, so it is left as a plus sign. If a server sent you form-encoded data where + means space, replace the plus signs with spaces before decoding.
It can, but the result escapes the URL's own punctuation, so it is only useful when the URL is data rather than a link. Encode individual query values and leave the separators alone if you want a clickable URL.
Yes. Characters outside ASCII are converted to their UTF-8 bytes and each byte is percent-escaped, so accents, Greek, Cyrillic, Chinese and emoji all round-trip correctly.
No. Encoding and decoding both use browser functions on your device, so the text never leaves the page.
Related convert tools: Base64 Encoder, JSON Formatter, CSV ↔ JSON Converter, Meta Tag Preview.
Encoding and decoding run entirely in your browser — the text you paste is never uploaded.