Browse all tools
Developer Tool

URL Encode and Decode

Encode text for safe use in a URL and decode percent-encoded URLs back to readable text, right in your browser. Component and whole-URL modes. Free, no signup, nothing uploaded.

Text to encode
Encoded URL
Guide

How to encode and decode a URL

1

Pick Encode or Decode

Choose Encode to make text safe for a URL, or Decode to turn a percent-encoded URL back into plain text. The output updates as you type.

2

Choose the Mode

Use Component to encode a single value like a query parameter, or Whole URL to encode a full address while keeping the slashes and separators.

3

Copy the Result

Copy the output, or use Swap to send it back to the input and flip the direction in one click.

Pixellize free online tools illustration showing browser, file, and gear icons

When a URL Needs the Right Encoding

Benefits

Why Use Our URL Encoder and Decoder?

Encode and Decode

Convert text to percent-encoding and back again, both directions in one tool with live output.

Component or Whole URL

Encode a single query value, or a complete URL while keeping the slashes, question marks, and separators intact.

Unicode Safe

Accents, emoji, and non-Latin characters are encoded as proper UTF-8 percent sequences and decode back cleanly.

Clear Error Messages

If a URL has a broken percent sequence, you get a plain explanation instead of a silent failure.

One-Click Swap

Send the output back to the input and flip encode to decode without retyping anything.

Runs Locally

Everything happens in your browser. Your text and URLs are never uploaded or stored.

FAQ

Frequently Asked Questions

Common questions about URL encoding and decoding.

What is URL encoding?

URL encoding, also called percent-encoding, replaces characters that are not safe in a URL with a percent sign followed by two hex digits. A space becomes %20, for example, so the value travels through the URL without breaking it.

What is the difference between component and whole URL?

Component mode encodes everything that is not a plain letter or digit, including slashes and question marks, so it is right for a single query value. Whole URL mode keeps the characters that give a URL its structure, so it is right for encoding a full address.

When should I use each mode?

Use component when you are putting one value into a query string, like a search term or a redirect target. Use whole URL when you have a complete link with spaces or accents that you want to make valid without breaking its parts.

Does it handle emoji and accents?

Yes. Characters outside the basic set are encoded as UTF-8 percent sequences, so emoji, accented letters, and non-Latin scripts encode and decode back exactly.

Why does decoding show an error?

Decoding fails if the input has a broken percent sequence, such as a lone % or a %2 with no second digit. The tool tells you what is wrong so you can fix the input.

Is this URL tool free?

Yes, it is completely free with no signup and no limits. Everything runs in your browser, so your text and URLs stay on your device.

Scroll to Top