Use this free URL encoder and decoder to make text safe for web addresses, or to turn an encoded address back into readable text. Paste your text, choose Encode text, Encode full URL, or Decode, and the result appears instantly. Spaces, symbols, and non-English characters are converted to percent codes such as %20 and %C3%A9, and decoding reverses them. You can copy the result, download it as a text file, or send it back to the input to convert it again. Everything runs in your browser and the result updates as you type.

Encoding the wrong part of a URL breaks links. Encode the values you insert, not the whole address, unless you pick the full URL option.

How to use the URL encoder and decoder

Paste your text and the converted version appears instantly.

  • Paste your text: add a URL, a query value, a file name, or encoded text that you want to read.
  • Choose a mode: pick Encode text for a single value, Encode full URL for a complete address, or Decode to turn percent codes back into characters.
  • Adjust the options (optional): choose %20 or a plus sign for spaces, decide whether a plus sign decodes to a space, and process a list one line at a time.
  • Copy or download: copy the result, download it as a .txt file, or use Use as input to convert the result again.

What each mode does

ModeExampleWhat it does
Encode texta%20%26%20b%3DcEncodes almost every special character, including : / ? & = and #. Use it for a single value inside a URL, such as a search term.
Encode full URLhttps://example.com/a%20b?x=1Keeps the structural characters of an address and encodes the rest, such as spaces and non-English letters.
Decodehello worldConverts percent codes back to readable characters. Incomplete or invalid codes are left as they are.

Common percent codes

CharacterEncodedWhy it matters
Space%20Spaces are not allowed in a URL. Some form-style query strings use + instead.
&%26Separates query parameters, so it must be encoded inside a value.
=%3DSeparates a parameter name from its value.
?%3FStarts the query string.
#%23Starts the fragment, so everything after it is not sent to the server.
/%2FSeparates path segments, so encode it when it is part of a value.
+%2BCan be read as a space in query strings, so encode a real plus sign.
%%25Starts every code, so a literal percent sign must be encoded.
é%C3%A9Non-English characters are encoded as UTF-8 bytes.

What this tool does and does not do

This tool converts characters to and from percent encoding using UTF-8. It does not check whether a URL is valid, reachable, or safe, and it does not shorten or redirect links. Letters, numbers, and the characters - _ . ! ~ * ' ( ) are left as they are when you use Encode text. Encoding a full URL that is already encoded will encode its percent signs again, so decode first if you are unsure. Decoding cannot repair a broken code, so something like %E0%A4%A is left unchanged.

Encode each value once, then put it into the URL. Encoding twice turns %20 into %2520, and decoding once will not undo it.

Worked examples

Encoding a search term for a query string

Paste "fish & chips" and choose Encode text. The result is "fish%20%26%20chips", which is safe to place after "?q=" because the ampersand no longer splits the query.

Fixing a link that contains spaces

Paste "https://example.com/my files/report 2026.pdf" and choose Encode full URL. The address keeps its structure and the spaces become %20, giving "https://example.com/my%20files/report%202026.pdf".

Reading an encoded address

Paste "https://example.com/search?q=caf%C3%A9%20au%20lait" and choose Decode. The codes convert back to "café au lait". If the address came from a form and uses plus signs for spaces, turn on the option that converts + to a space.

Common URL encoding mistakes

  • Encoding a full URL with Encode text. This also encodes the colon and slashes, so the address stops working. Use Encode full URL for complete addresses.
  • Encoding twice. A second pass turns each percent sign into %25 and creates codes such as %2520.
  • Forgetting to encode & and =. Inside a value they split the parameter, so a value such as "a&b" changes meaning.
  • Treating + as a space everywhere. A plus sign means a space only in form-style query strings, not in paths.

Frequently asked questions

What is URL encoding?

URL encoding, also called percent encoding, replaces characters that are not safe in a URL with a percent sign followed by two hexadecimal digits. For example, a space becomes %20 and an ampersand becomes %26.

What is the difference between Encode text and Encode full URL?

Encode text converts almost every special character, including : / ? & = and #, which suits a single value inside a URL. Encode full URL leaves those structural characters alone so a complete address keeps working.

Should a space be %20 or a plus sign?

%20 is correct in any part of a URL. A plus sign stands for a space only in form-style query strings, so %20 is the safer choice unless a system expects plus signs.

Why are some codes left unchanged when I decode?

A code is valid only when a percent sign is followed by two hexadecimal digits and, for non-English characters, the codes form a complete UTF-8 sequence. Incomplete or invalid codes are left as they are, and the tool tells you how many it skipped.

Does it support non-English characters and emoji?

Yes. Characters outside basic English are encoded as UTF-8, so a letter such as é becomes %C3%A9 and decodes back correctly.

Does it keep my line breaks?

By default all text is treated as one piece, so line breaks are encoded as %0A and decoded back to line breaks. Choose Process each line separately to keep one result per line, which suits a list of URLs.

Where does my text go?

The conversion runs in your browser. This page does not send or save the text you paste, and clearing the form removes it from the screen.

Is there a limit on text length?

The tool accepts up to 100,000 characters of text. Browsers and servers often limit the length of a URL itself, so very long encoded values may not work in a link.

Share this article