URL Encoder & Decoder

Paste a URL or text below, then encode or decode it. Everything runs on your device.

Find this useful?Support this site ☕

Free online URL encoder and decoder

URL encoding, also called percent-encoding, replaces unsafe or reserved characters in a web address with a percent sign followed by two hexadecimal digits. This is essential when you need to put spaces, ampersands, question marks or non-English characters into a query string, link or API request without breaking it. Paste your text, hit Encode, and copy the safe result — or Decode to turn a percent-encoded string back into readable text.

Your text is private

All encoding and decoding happens directly in your browser using the built-in encodeURIComponent and decodeURIComponent functions. Nothing you paste is ever sent to a server or stored anywhere — close the tab and it's gone.

Frequently asked questions

What is the difference between encoding and decoding?

Encoding converts characters like spaces and symbols into a safe percent-encoded form (for example a space becomes %20). Decoding reverses this, turning %20 back into a space so the text is human-readable again.

Why do I get an "Invalid URL-encoded text" error?

Decoding fails when the input contains a percent sign that isn't followed by two valid hexadecimal digits. Check for stray % characters and try again, or use Encode instead if the text isn't already encoded.