Zashify

URL Encode / Decode

Escape text for URLs, or decode percent-encoded strings back to plain text.

How to encode or decode URLs online in your browser

  1. 1Paste text into the box.
  2. 2Pick Encode or Decode.
  3. 3Copy the result.

When to use URL encoding and decoding

URLs have restrictions on which characters they can contain directly. Characters like spaces, ampersands, question marks, and non-ASCII symbols must be converted before they can travel safely through browsers and servers. URL encoding replaces those problematic characters with a percent sign followed by two hexadecimal digits, such as %20 for a space. URL decoding does the reverse, turning percent-encoded strings back into readable text.

You need this tool whenever you receive a garbled URL with strange symbols and want to read it properly, or when you are building a link that contains special characters and need to make sure it works. Copywriters, developers, and marketers often use it when sharing URLs that contain spaces or symbols in social posts, emails, or documents.

Encode or decode your text in three simple steps

  • Paste your text or URL fragment into the input box at the top of the page.
  • Click the Encode button to convert plain text into percent-encoded format, or click Decode to reverse the process back to readable text.
  • Copy the result from the output area and paste it wherever you need it.

What the output looks like

When you encode text, every special character gets replaced with its percent-encoded equivalent. A space becomes %20, an ampersand becomes %26, and accented letters get converted to their UTF-8 byte sequences. The output is a single continuous string ready to be inserted into a URL parameter or query string.

When you decode, the reverse happens. Percent codes disappear and the original readable characters return. You will see the exact text that was encoded, including spaces, punctuation, and international characters.

What gets encoded and common mistakes to avoid

  • Letters, numbers, hyphens, underscores, tildes, and periods are left unchanged because they are considered safe in URLs.
  • Everything else gets encoded, including spaces, symbols, and non-ASCII characters.
  • Encoding a full URL will encode characters like colons, slashes, and question marks. If you only want to encode a specific parameter value, isolate that portion first.
  • Decoding a string that was not percent-encoded will not change it, but attempting to decode a partially encoded string may produce unexpected results.

Your text never leaves your device

This tool runs entirely inside your web browser using JavaScript. When you paste text and click encode or decode, your content is processed on your own computer. Nothing is sent to any server, and no copies are stored anywhere. Once you close or refresh the page, all data is gone. This makes the tool safe to use with sensitive information, private URLs, and proprietary text without worrying about data handling or third-party access.

Frequently asked questions

What is percent-encoding?

Special characters in URLs get written as %XX so they travel safely.

Which escaping rules are used?

Component rules, which escape the broadest set — safe everywhere in a URL.

Is the text saved?

No. All processing is local.

What characters are converted during encoding?

Letters A-Z, a-z, digits 0-9, hyphens, underscores, tildes, and periods stay as-is. Every other character, including spaces, ampersands, question marks, and non-ASCII symbols, gets converted to its percent-encoded form.

Can I use this to encode a full URL with http://?

Yes, but the result may not be what you expect. A full URL contains many characters that get encoded, including colons, slashes, and the @ symbol. If you only need to encode a query parameter value, extract that specific part first for cleaner results.

What happens if I decode text that was never encoded?

Nothing changes. The decode function only reverses percent-encoding. Plain text without any %XX sequences will look identical before and after clicking Decode.

Does this tool work on phones and tablets?

Yes. The interface adapts to any screen size. You can paste, encode, decode, and copy results on mobile browsers just as you would on a desktop.

Why does my encoded text look different from what I see in some APIs?

This tool uses component encoding rules, which escape the broadest set of characters. Some APIs use different encoding standards that treat certain characters differently. If a specific API requires a different format, you may need to manually adjust the output.

Related tools