URL Encode and Decode

Percent-encode text for URLs and decode encoded URLs back to readable text.

Runs in your browser. Your text and files never leave your device.

How to URL encode or decode

  1. Paste text or a link into the input box.
  2. Press Encode to make it URL-safe, or Decode to read an encoded link.
  3. Copy the output.

In JavaScript, the same results come from encodeURIComponent() (Component) and encodeURI() (Whole URL). Need Base64 instead? Use the Base64 tool.

Frequently Asked Questions

What is URL encoding?

URLs can only contain certain characters. URL encoding (percent-encoding) replaces the others with % and a hex code: a space becomes %20, & becomes %26 and ü becomes %C3%BC.

Component or whole URL: which should I choose?

Choose "Component" for a single value you put inside a URL, like a search term or a parameter value; it encodes & = ? / too. Choose "Whole URL" for a full address you only want to make safe; it keeps : / ? & = so the URL still works.

Why does + turn into a space when decoding?

In form submissions and query strings, + stands for a space. Untick "Treat + as space" if your text contains real plus signs.

Is my data uploaded?

No. Encoding and decoding run in your browser.

Free tool: JSON FormatterFormat, validate and minify JSON. Errors show the exact line and column.Free tool: Base64 Encode and DecodeEncode text or files to Base64 and decode Base64 back, with full UTF-8 support.Free tool: UUID GeneratorGenerate random UUID v4 (GUID) values, one or a thousand at a time.Free tool: Epoch ConverterConvert Unix timestamps to dates and dates to Unix time, in seconds or milliseconds.