URL Encode and Decode

Percent-encode or decode a URL component or form value.

Input

Processed on your device

How to use URL Encode and Decode

Encode a string for use as a URL component or decode percent-escaped text. Switch to form mode for query form conventions that use plus for spaces.

  1. Paste one component, choose Encode or Decode and enable Form mode when the receiver expects it.
  2. Verify reserved characters and space handling in the result.

Example use

Encode a search term containing punctuation so it can be inserted as a single query value.

Output and compatibility

Encoding an entire URL as one string also escapes separators. Form-mode plus handling differs from general percent decoding. This page does not visit the address.

Troubleshooting

If decoding rejects a sequence, check that each percent sign has two hexadecimal digits and that the bytes form valid UTF-8.

Use URL Parser to inspect parts of a complete link.

Frequently asked questions

When should I use form mode?

Use it for application/x-www-form-urlencoded conventions, where plus represents a space.

Can I encode one parameter of an existing URL?

Encode the value separately or use URL Query Builder.

Find a tool