GetFixMyFile

URL Encoder

Encode query values safely or decode percent-encoded strings. Uses standard URI component rules.

URL encode / decode

Percent-encode query values or decode encoded URL components.

How this URL encoder treats the whole box

Encode runs encodeURIComponent on the entire input. It does not look for a query string and encode only the value. https://getfixmyfile.com/tools?q=hello world becomes https%3A%2F%2Fgetfixmyfile.com%2Ftools%3Fq%3Dhello%20world. That is what you want when the whole string is one query parameter. It is the wrong button when you only needed the space in "hello world" turned into %20 and the https:// left alone. For that, paste just the value, encode it, and put the result back into the URL yourself.

Decode uses decodeURIComponent after replacing each + with %20, so application/x-www-form-urlencoded plus signs become spaces. A bare % or a % that is not followed by two hex digits throws. %20 decodes to a space. %2520 decodes once to %20, not to a space: that is a double-encoded value, and you have to decode again. Encoding an already encoded string encodes the % signs, which is how %20 becomes %2520.

Reserved characters are escaped on purpose. encodeURIComponent encodes &, =, ?, #, /, and spaces. Do not use the result as a full address bar URL. Use it as a component. The sample in the box is a full URL so you can see that difference immediately.

How to use it

  1. Choose Encode or Decode before you run. The mode is not detected from the text.
  2. To encode one parameter, paste only that parameter, not the whole address.
  3. Press Encode or Decode. An invalid % sequence shows the error and clears the output.
  4. Copy the output into the portal field. Decode once, check the text, and decode again only if you still see %20.

The text stays in this browser tab. GetFixMyFile does not upload it, store it, or include it in analytics.

Questions

Why did my https:// link break?
Encode escapes the colon and slashes because the whole box is one component. Encode the query value alone if the scheme and host must stay readable.
Does a plus sign mean a space?
On decode, yes. Each + is turned into %20 before decoding, which is the form-body rule. On encode, a space becomes %20, not +.
What is double encoding?
If you encode %20 again, the percent sign itself is escaped and you get %2520. One decode returns %20. A second decode returns the space.

Frequently Asked Questions