# URL Encoder / Decoder

> Escape query parameters or whole URLs, and decode percent-encoded strings back to readable text. It is free to use, with no account or watermark. Input is processed locally in your browser.

Encode and decode URLs and query strings free - component or full-URL mode with percent escaping. Nothing is sent anywhere.

- **Canonical:** https://www.ailovekit.com/dev/url-encoder/
- **Category:** Developer Tools
- **Processing:** Runs entirely in your browser. Files are never uploaded to AiLoveKit servers.

## Two Modes, Zero Guessing

AiLoveKit's **URL encoder / decoder** offers both escaping levels: component mode (encodeURIComponent) for individual query values where &, =, and ? must all be escaped, and full-URL mode (encodeURI) that keeps the structure of a complete address intact. Decoding works the same way in reverse.

## Which Mode to Use

- **Component** - encoding a search term, name, or any single parameter value.

- **Full URL** - encoding a complete address while keeping ://, ?, and & intact.

- **Debugging** - decode mystery %2F%20 soup from logs and redirect chains.

## Encoding Example and Practical Steps

To place the search phrase `fish & chips` in a query value, choose component mode. The space and ampersand are escaped so they cannot be mistaken for URL separators. Encode each value separately, then join names and values with `=` and `&`; encoding the completed query string as one component would also escape its structural characters.

- Decide whether the input is one component value or an entire URL.

- Choose the matching mode, then encode once. Encoding an already encoded value again can turn `%20` into `%2520`.

- When debugging, paste the encoded value and decode with the corresponding mode.

## Limitations and Sibling Tools

Percent encoding changes representation, not encryption or access control. It does not validate whether a URL exists, and malformed percent sequences may not decode. Base64URL is a different encoding used by tokens; use [Base64 Encoder / Decoder](https://www.ailovekit.com/dev/base64/) for that representation or [JWT Decoder](https://www.ailovekit.com/dev/jwt-decoder/) to inspect token sections.

## Frequently Asked Questions

**What is percent encoding?**

Each special character becomes % plus its two-digit hex code - a space becomes %20, an ampersand becomes %26.

**Why are there two encoding modes?**

Component mode escapes everything (for parameter values), while full-URL mode preserves URL structure characters like slashes and question marks.

**Is anything sent to a server?**

No - encoding and decoding run locally in your browser.

**Why did a space become %20 instead of a plus sign?**

These modes use standard URI percent encoding, where a space is %20. Plus-for-space is associated with HTML form query serialization and requires different handling.

**Can this tool shorten or validate a URL?**

No. It only escapes or unescapes URI characters; it does not check destinations, follow redirects, or shorten links.

---

Source: https://www.ailovekit.com/dev/url-encoder/
Part of AiLoveKit: https://www.ailovekit.com/
Machine-readable index: https://www.ailovekit.com/llms.txt
