URL Encoder/Decoder

code

Convert text to URL-safe format by percent-encoding special characters, or decode URL-encoded text back to its original form. Essential for working with query parameters, API requests, and web development.

URL Encoder/Decoder
Encode text for URLs or decode URL-encoded text
Characters: 0Words: 0Sentences: 0Lines: 0

Options

Characters: 0Words: 0Sentences: 0Lines: 0

URL Encoder & Decoder - Percent Encoding Tool

What is a URL encoder/decoder?

A URL encoder/decoder converts characters into percent-encoded form so they travel safely inside links. It also reverses the process, turning encoded strings back into readable text. Use it to fix broken query strings, handle spaces and special characters, or inspect redirects without writing code.

How to use the URL encoder/decoder

  1. Paste text or a URL: Add the string you need to encode, or paste an encoded URL to decode.
  2. Choose action: Select Encode to percent-encode or Decode to make it readable.
  3. Get results: See the output instantly. Copy it or download a text file for logs or code.

Why use this tool?

  • Prevent broken links: Encode spaces, symbols, and UTF-8 characters so links stay intact.
  • Debug redirects: Decode long redirect URLs to inspect parameters quickly.
  • Stay private: Everything runs in your browser; no URLs are stored or sent.

Use case 1: Email and chat links

Encode special characters before sending links through email clients that break on spaces.

Use case 2: API query strings

Encode parameters like JSON snippets before attaching them to GET requests.

Use case 3: Log analysis

Decode logged redirect URLs to read campaign or user identifiers clearly.

Examples

Basic example

Input (encode): https://example.com/search?query=red shoes&size=8
Output: https://example.com/search?query=red%20shoes&size=8

Advanced example

Input (decode): https%3A%2F%2Fshop.com%2F%3Ftag%3Dsummer%26coupon%3Dsave%252010
Output: https://shop.com/?tag=summer&coupon=save%2010

Common errors

Double encoding

If text appears with %2520 instead of %20, it was encoded twice. Decode once, then re-encode correctly.

Wrong character set

This tool uses UTF-8. If characters still look off, ensure the source text is UTF-8 before encoding.

Tips and proven approaches

  • Encode only parameter values, not the whole URL, to avoid hiding path separators.
  • For forms, trim whitespace before encoding to prevent trailing %20.
  • Combine with the Base64 encoder/decoder when embedding binary data in URLs.

Related tools

Privacy and security

Encoding and decoding happen locally in your browser. No URLs or text are sent or stored.

Frequently Asked Questions
URL encoding (also called percent-encoding) converts characters into a format that can be safely transmitted over the internet. Special characters are replaced with a "%" followed by two hexadecimal digits.
Use URL encoding when you need to include special characters in URLs, query parameters, or form data. Characters like spaces, ampersands, and non-ASCII characters must be encoded to work properly in URLs.
This tool encodes all characters except unreserved characters (A-Z, a-z, 0-9, hyphen, underscore, period, and tilde) according to RFC 3986 standards.