URL encode

Make text safe for web addresses. Choose whether you are encoding a single query value, form data where spaces become +, or a whole address where / and ? must stay as they are.

Free and private. Everything runs in your browser, nothing is uploaded.

How it works

  1. Paste your textType or paste into the input box, or open a text file. Sample shows an example.
  2. Check the resultThe result appears on the right as you type. Errors are shown with the line and column.
  3. Copy or swapCopy the result, download it as a file, or press Swap to reverse the direction and check it.

Which mode should I use?

Use Query value for anything that goes after = in a link, such as a search term. It encodes every special character, including & and =, so the value cannot break the address.

Use Form data to match what browsers send from HTML forms, and Whole address to fix spaces and non English letters in a complete link without touching its structure.

What each mode keeps and what it encodes

Take the text café & bar. Query value gives caf%C3%A9%20%26%20bar: only letters, digits and - _ . ~ stay as they are, everything else becomes a percent code, including / ? & = # + and even ! ' ( ) *. Form data gives caf%C3%A9+%26+bar, the same but with + for spaces. Whole address gives caf%C3%A9%20&%20bar, because it keeps characters that build a link, such as / ? & = and #.

The most common mistake is encoding text that is already encoded. The % sign itself is encoded as %25, so %20 turns into %2520 and the link breaks. Encode raw text only, and decode first if you are not sure what you have.

About URL

URL encoding, also called percent encoding, writes characters that are not allowed in a web address as % followed by two hex digits. A space becomes %20 or +, and ı becomes %C4%B1.

Frequently asked questions

Should a space be %20 or +?

Both mean a space in query strings. %20 works everywhere, + is the form data style. In the path part of an address only %20 is correct.

Why did %20 become %2520?

The text was already encoded, and encoding it again turned each % into %25. Decode it once to get the raw text, then encode that.

How do I put a link inside another link?

Encode the inner link with Query value and use the result as the parameter value, for example after redirect=. Its own ? and & are then encoded and cannot break the outer address.

Is my text uploaded anywhere?

No. Encoding and decoding happen in your browser. Tokens, keys and other private text never leave your device.

Is Base64 encryption?

No. Base64 only changes how data is written. Anyone can decode it, so never use it to protect passwords or secrets.

What is URL safe Base64?

It replaces + and / with - and _ and drops the = padding, so the result can be used in addresses and file names. It is used in JWT tokens, for example. The decoder accepts both forms.

Why does decoding show a file instead of text?

If the decoded data is not readable text, the tool checks what kind of file it is. Images are previewed, and any file can be downloaded with the Download button.

Does it work offline?

Yes. After you open the page once, it keeps working without an internet connection.