URL Encode Decode

Encode plain text for URLs or decode URL-encoded text instantly with side-by-side output.

Encode or decode URL text without leaving the page

Paste plain text or URL-encoded text, switch modes, and compare the converted result side by side. The output stays read-only so you can copy it without accidentally editing the converted value.

Input

Paste plain text here to generate URL-encoded output.

Output

URL-encoded output appears here as you type.

URL-encoded output
Start typing or paste text to see the converted output.
Output length: 0
Ready to encode

How to use URL Encode Decode

  1. Paste plain text into the input panel and keep Encode selected when you need URL-safe percent-encoded output.
  2. Switch to Decode when you want to turn copied URL-encoded text back into readable text.
  3. Review the converted result in the read-only output panel as the input updates instantly.
  4. Use Sample to load an example for the current mode, Clear to reset the workspace, or Copy Output when the result is ready.
  5. Use Swap when you want to move the current output back into the input and reverse the direction.

URL encode decode examples

  • Encode a query value before pasting it into a URL parameter.

  • Decode copied marketing links or percent-encoded paths to inspect the readable text inside them.

  • Convert UTM labels, API query fragments, or redirect targets without opening a separate developer tool.

What this URL encode decode tool does

This tool converts plain text into URL-safe percent-encoded text and also decodes encoded values back into readable text. It is useful when you need to inspect query parameters, copied links, redirect values, UTM labels, or API request fragments without manually decoding each percent sequence.

When to encode vs decode URL text

Use Encode when you want to safely include text inside a query string, parameter value, or path fragment. Use Decode when you copied text that already contains percent-encoded sequences such as `%20`, `%2F`, or `%3D` and want to inspect the readable value again.

URL Encode Decode vs Base64 Encoder

URL encoding and Base64 encoding solve different problems. URL encoding keeps text safe inside URLs by replacing reserved characters with percent sequences. Base64 turns text into a different binary-safe representation. If your text is going into a URL, URL encoding is the better fit.

URL encode decode FAQs

What does URL encoding do?

URL encoding replaces reserved or unsafe characters with percent-encoded sequences so text can be used more safely inside URLs and query values.

Can this tool decode copied URL-encoded text?

Yes. Switch to Decode mode and paste the encoded text to turn it back into readable output.

What happens when the encoded text is invalid?

The output panel shows a clear invalid-input message instead of leaving stale converted content in place.

Does the decoder treat plus signs as spaces?

Yes. The tool treats `+` as a space during decode so common query-string and form-style encoded values remain readable.

Does this tool use + or %20 for spaces?

This tool uses standard URL encoding via encodeURIComponent, which encodes spaces as %20 instead of +.

Related tools