URL Encoder & Decoder

Convert text into URL-safe form or decode percent-encoded text.

How to use

These are example steps; replace the values for your task.

  1. Choose Encode and enable whole-URL mode.
  2. Turn off the option that treats spaces as +, then enter the entire URL.
  3. Check that /, ?, & and = remain, while the space becomes %20.

Conversion settings

Original text

0 characters

Not saved

Converted text

0 characters

0 characters

About this tool

Prepare search terms, query values, and non-ASCII paths for safe use in URLs.

A URL component encodes spaces, accented text and percent signs separately

Encoding “café A%20” as a component gives “caf%C3%A9%20A%2520”. The existing %20 is treated as text, so its percent sign becomes %25.

Try a use case and check the result

Encode a parameter value so it can be distinguished from URL separators.

Try this example replaces the input and settings. Restore previous input returns to the state before the latest example. Normal draft-saving rules apply.

After trying multiple examples, repeat Restore previous input to return to your original input. History is kept only in this page; restore any input you need before closing it.

Encode an ampersand and space inside a value

Input and settings

A&B C

Whole URL: Off; Spaces as +: Off; Operation: Encode

Expected result

A%26B%20C

How to read the result

This example is one value, not a whole URL. %26 represents a literal ampersand; %20 represents a space.

Scope and pitfalls

Re-encoding an already encoded value can double-encode it. Check whether the source treats + as a space.

When a plus sign must remain a plus sign

With “Treat spaces as +” enabled, decoding A+B produces A B. Disable that option to keep a literal plus sign. With whole-URL mode off, an encoded literal plus, %2B, decodes to + even when “Treat spaces as +” is enabled. Whole-URL mode preserves %2B. Check whether the source uses form encoding or ordinary URL components.

Continue with the next task

Frequently asked questions

What is the difference between a full URL and a URL component?

Full URL mode keeps characters such as /, :, ?, &, and =. Leave it off when encoding a query value or path segment.

What happens with invalid encoded text?

An error message appears and the result is cleared.

Is my text sent to a server?

No. Conversion and storage take place only in your browser.

Related tools

Inputs and storage

Keep a separate copy before clearing or resetting. This browser autosaves entered text and tool settings. Data is not restored when read 30 days or more after its last save. Clearing site data or storage restrictions may remove it sooner.

Favorites and language preferences are stored separately and may be lost when site data is cleared. Tool resets and site-data deletion do not delete files already downloaded to your device.

Explore tools & games

All 120 tools · 16 games

All 120 tools · 16 games

Text & writing 26

Calculators & converters 22

Date & time 12

Images & PDF 26

Data & web 28

Random & handy 6

Games 16