Mr. Tools

How to

How to use URL Encode / Decode

Enter text or a URL and it is converted into a URL-safe form right away. If you enter a whole URL, the tool suggests keeping : / ? & = as they are. What you enter is never sent anywhere and stays only on this device.

URL Encode / Decode thumbnailURL Encode / Decode thumbnail
Steps
3 steps
Guide
With screenshots
Content
Notes and FAQ

Use Cases

When to use it

  • Send a URL with non-English characters by email or chat
  • Turn a URL like %E6%9D%B1 back into readable text
  • Check the values of URL parameters one by one
  • Convert text with Shift_JIS for an older system

Capabilities

What this tool can do

  • URL-encode text and decode it back
  • Convert a whole URL while keeping : / ? & =
  • List the parameters of a decoded URL as names and values
  • Choose the character encoding from UTF-8, Shift_JIS, EUC-JP, and ISO-2022-JP (Auto detect is also available for decoding)
  • Encode spaces as +, use lowercase hex, or change the prefix and separator
  • Show the reason above the input box when the text cannot be decoded

Steps

Steps

The order of operations and checkpoints are listed so you can proceed while looking at the screen.

STEP 1

Enter a URL or text

Paste it into "Text to convert" on the left. While the box is empty, you can also press "Paste" in the bar at the bottom. There is no convert button: the result appears on the right as soon as you enter something.

Screen with the input box and the result box outlined in red

Checkpoints

  • A result appeared in "Converted result" on the right

Where to look on screen

01
Paste and sample

"Insert sample" adds a URL whose search term contains Japanese text and a space. When Decode is selected, it adds the already encoded URL.

Screen with "Paste" and "Insert sample" in the bottom bar outlined in red
02
Message for a whole URL

When you enter a URL that starts with https://, you see "This looks like a whole URL." Press "Keep symbols" to convert it while keeping a URL you can open.

Screen with the message for a whole URL outlined in red

STEP 2

Choose the action and format

Choose Encode or Decode under "Action". To convert a whole URL, turn on "Keep URL symbols (: / ? & =)". Change the other settings only when the place you send the result to asks for a specific format.

Screen with the action, character encoding, and Keep URL symbols outlined in red

Checkpoints

  • The action matches what you want to do
  • For a whole URL, keeping the symbols is turned on

Where to look on screen

01
Action and Swap

Press "Swap" to move the result to the left box and switch to the opposite action.

Screen with the action and Swap outlined in red
02
Keep URL symbols

When it is on, separators such as : / ? # & = and characters already written with % are left unchanged.

Screen with the Keep URL symbols switch outlined in red
03
Advanced

Press "Advanced" to show Prefix (%, \x, 0x), Separator, skipping unreserved characters, lowercase hex, and encoding spaces as +.

Screen with the items shown under Advanced outlined in red

STEP 3

Check the result and copy it

Press "Copy" in "Converted result" on the right to copy the result. For a decoded URL, switch to "Parameters" to read the values after the ? one by one.

Screen with the result box outlined in red

Checkpoints

  • The result is not cut off

Where to look on screen

01
Copy

Copies the result in the right box.

Screen with "Copy" in the result box outlined in red
02
Parameters

Lists each name and value, such as "q" and "page". The values are shown decoded, so you can read them.

Screen with the parameters view outlined in red
03
When it cannot be decoded

If you decode text that has no characters written with %, you see "Cannot read this as a URL-encoded string."

Screen with the red bar above the input box outlined in red

What happens when you convert a whole URL?

We compared the results for https://example.com/search?q=東京 駅&page=2, whose search term contains Japanese text and a space.

SettingResultAs a link
Default settingshttps%3A%2F%2Fexample.com%2Fsearch%3Fq%3D%E6%9D%B1%E4%BA%AC%20%E9%A7%85%26page%3D2Does not open
Keep URL symbols (: / ? & =)https://example.com/search?q=%E6%9D%B1%E4%BA%AC%20%E9%A7%85&page=2Opens

With the default settings, even : / ? & =, which separate the parts of a URL, are changed. When you convert only part of a URL, such as just the search term, keep the default settings. With the symbols kept, parts that are already converted, such as %E6, are not converted a second time.

How does each setting change the result?

We tried a b/日本語, which contains a space, a slash, and Japanese text.

Results for a b/日本語
SettingResult
Default settingsa%20b%2F%E6%97%A5%E6%9C%AC%E8%AA%9E
Lowercase hex output (%2f)a%20b%2f%e6%97%a5%e6%9c%ac%e8%aa%9e
Encode space as +a+b%2F%E6%97%A5%E6%9C%AC%E8%AA%9E
Skip unreserved chars (A-Za-z0-9, -_.~) turned off%61%20%62%2F%E6%97%A5%E6%9C%AC%E8%AA%9E
Prefix set to \xa\x20b\x2F\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E
Separator set to -a%20b%2F-%E6-%97-%A5-%E6-%9C-%AC-%E8-%AA-%9E

When you send the text as a form value, spaces are sometimes written as +. Otherwise, the default settings are fine unless you are told to use something else.

What happens with a different character encoding?

Character encodingResult for 東京 (Tokyo)
UTF-8%E6%9D%B1%E4%BA%AC
Shift_JIS%93%8C%8B%9E

If the encoding does not match the one the receiving side uses, the text comes out garbled. Decode starts on Auto detect, so %93%8C%8B%9E also turns back into 東京 as it is.

What if it does not work?

What happensCauseHow to fix it
You see "Cannot read this as a URL-encoded string."There are no characters written with %, or what follows % is not hex, as in %ZZCheck the two characters after each %
The text comes out garbled, like 譚ア莠ャA value encoded in UTF-8 is being decoded as Shift_JISSet the character encoding back to Auto detect
The last character becomes �The value is cut off partwayCopy the whole value again
+ turns into a space"Decode + as space" is on from the startTo keep +, turn it off under Advanced
% is converted again, as in %25E6Already converted text is being encoded with the default settingsSwitch to Decode, or turn on "Keep URL symbols (: / ? & =)"

Notes

Notes

Important points are grouped with reasons so you can make decisions before using the tool.

Whole URL

Keep the symbols when you convert a whole URL

Turn on "Keep URL symbols (: / ? & =)" and only the non-English characters and spaces change, so the URL still opens.

Encoding

Choose UTF-8 unless told otherwise

Older systems sometimes ask for Shift_JIS or another encoding.

Garbled text

If the text comes out garbled, choose the encoding again

Decode starts on Auto detect. If it guesses wrong, choose the encoding yourself.

FAQ

Questions about URL Encode / Decode

Questions that make decisions easier before use are summarized first.

Can I convert a whole URL as it is?

Yes. Turn on "Keep URL symbols (: / ? & =)" and symbols such as : / ? & = stay as they are, while only non-English characters and spaces are converted. When you enter a URL that starts with https://, the tool suggests switching to this setting.

Are spaces encoded as %20 or +?

They become %20 by default. Turn on "Encode space as +" under Advanced to get + instead. When decoding, + is turned back into a space from the start.

How are non-English characters such as Japanese converted?

With UTF-8, 東京 (Tokyo) becomes %E6%9D%B1%E4%BA%AC. If you choose Shift_JIS, it becomes %93%8C%8B%9E.

Can I make URL parameters easier to read?

Yes. Switch the result box to "Parameters" to list each name=value pair after the ? one by one.

What happens if I encode text that is already encoded?

With the default settings, % is converted too, so you get something like %25E6. When you enter already encoded text, the tool suggests switching to Decode.

Is what I enter sent anywhere?

No. The conversion happens in your browser. The text you enter is kept only in this browser on this device, so you can pick up where you left off when you open the page again.

Next guides

Related guides

Related guides are listed next so you can continue without getting lost.