0 Uploads
Tools Privacy How It Works FAQ Blog

URL Encoder / Decoder - Percent Escaping Made Clear

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.

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

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.

  1. Decide whether the input is one component value or an entire URL.
  2. Choose the matching mode, then encode once. Encoding an already encoded value again can turn %20 into %2520.
  3. 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 for that representation or 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.