URL Encode / Decode

Encode or decode text for use inside a URL.

Also called: URL encoder, URL decoder, percent encoding.

FreeNo sign-upRuns in your browser
DEVELOPER

URL Encode / Decode

Encode or decode text for use inside a URL.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the URL Encode / Decode (14 seconds)

Recorded on a phone, steps written on screen, no sound.

About the URL Encode / Decode

Encode text so it's safe inside a URL (spaces become %20, & becomes %26), or decode it back to readable text.

Encoding and decoding

Encoding turns spaces, Urdu letters, & and other special characters into percent codes, so they can go inside a link: a space becomes %20, & becomes %26 and ک becomes %DA%A9. Letters, numbers and - _ . ! ~ * ' ( ) stay as they are.

Decoding turns the percent codes back into readable text. If the text contains a broken code, such as a % not followed by two hexadecimal digits, the tool says so instead of guessing.

How to use the URL Encode / Decode

  1. Enter your textType or paste your text.
  2. Pick the optionsaction (the defaults suit most uses).
  3. Press Run toolThe result appears right under the button.
  4. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

The result the URL Encode / Decode gives for a short sample note that contains a date, an e-mail address, a web address, a phone number and prices (produced by the tool itself).

Action
Encode

Result:

Caf%C3%A9%20Ol%C3%A9%20opened%20on%2012%20March%202025%20in%20Lahore.%0AEmail%20hello%40example.com%20or%20visit%20https%3A%2F%2Fexample.com%2Fmenu%20for%20the%20menu.%0ACall%20%2B92%20300%201234567%20to%20order%3B%20delivery%20is%20free%20over%201500%20rupees.%0AThe%20caf%C3%A9%20serves%203%20kinds%20of%20coffee%20and%202%20kinds%20of%20tea.

Good to know

What you need
You type or choose: Input text
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

Why do links break with spaces?

Spaces and some symbols must be encoded in URLs.

Encode the whole URL or one part?

Usually just the value, such as a search term.

More tools in Developer

See all Developer tools