How to URL Encode and Decode Text

Ever seen a link full of `%20` and `%3F` and wondered what happened to it? That is URL encoding — the way special characters are made safe to travel inside a web address. Encoding turns spaces and symbols into `%` codes; decoding turns them back into readable text. This guide explains why URLs need encoding, what the codes mean, and when you need each direction.

Why URLs need encoding

URLs can only reliably contain a limited set of characters. Spaces, and symbols like `?`, `&`, `#`, `/`, and `=`, have special structural meaning in a URL — they separate the parts. So when those characters need to appear *inside* a value rather than as structure, they must be escaped, or they would break the link or be misread. URL encoding (also called percent-encoding) replaces each unsafe character with a `%` followed by its code.

How to encode or decode with this tool

  1. Open the URL Encoder/Decoder tool.
  2. Paste your text or encoded string.
  3. Choose encode or decode.
  4. Copy the result.

Everything runs in your browser — nothing is uploaded.

What the codes mean

Each `%` code is the character's byte value in hexadecimal. The common ones you will recognize:

A search for "cats & dogs" becomes `cats%20%26%20dogs` in the URL, so the `&` is treated as literal text rather than a parameter separator.

When you need each direction

A common confusion

URL encoding is not Base64, and not the same as encoding the *whole* URL. You typically encode the *values* inside a query string, not the structural characters that make the URL work — encoding the `?` and `&` that separate parameters would break it. Encode the pieces that go *into* the slots, not the slots themselves.

Related tools

To break a URL into its components first, URL Parser separates protocol, host, path, and query. For encoding binary data rather than URL text, Base64 Encoder/Decoder is the counterpart.

Common uses

Privacy and limits

Encoding and decoding are fully local — no upload, nothing stored, offline once loaded. Open the URL Encoder/Decoder tool to make URLs safe and readable.