🔗

URL Encoder/Decoder

Encode and decode URL strings, query parameters, and paths. Perfect for handling URL-safe data, API callbacks, redirect URLs, and debugging web applications.

Developer Tools
Loading tool...

How to Use URL Encoder/Decoder

What is URL Encoding?

URL encoding (also called percent-encoding) converts special characters in URLs to a format that can be safely transmitted over the internet. It replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits.

How to Use This Tool

Encoding Text to URL Format

  1. Select Encode mode (default)
  2. Type or paste your text, URL, or query parameters
  3. Click Convert to encode
  4. Your URL-encoded string appears in the Output panel
  5. Click Copy Output to copy the encoded result

Decoding URL-Encoded Text

  1. Click Decode mode
  2. Paste your URL-encoded string
  3. Click Convert to decode
  4. Your decoded text appears in the Output panel
  5. Click Copy Output to copy the decoded result

Features

  • Query Parameters: Safely encode query params with spaces and special characters
  • Special Characters: Handles all special symbols, spaces, and non-ASCII characters
  • Bidirectional: Switch between Encode and Decode modes instantly
  • Error Handling: Clear error messages for malformed percent sequences
  • Quick Actions: Convert, Swap modes, Copy output, Clear all, or try Sample data

Common Use Cases

  • Query Strings: Encode search terms and parameters for URLs (hello worldhello%20world)
  • Redirect URLs: Encode callback URLs passed as query parameters
  • API Requests: Prepare URL-safe data for GET requests
  • OAuth & Authentication: Encode redirect URIs and state parameters
  • Debugging: Decode URL-encoded data from logs, cookies, or API responses
  • Form Data: Handle application/x-www-form-urlencoded content

What Gets Encoded?

URL encoding converts these characters:

  • Spaces: %20
  • Special characters: !, #, $, &, ', (, ), *, +, ,, /, :, ;, =, ?, @, [, ]
  • Non-ASCII characters: 你好%E4%BD%A0%E5%A5%BD

Safe characters (not encoded): A-Z, a-z, 0-9, -, _, ., ~

Tips

  • Always encode query parameter values before adding to URLs
  • Use Swap button to quickly reverse encode → decode or vice versa
  • Spaces can be encoded as %20 or + depending on context (this tool uses %20)
  • URL encoding is NOT encryption—anyone can decode it instantly

Frequently Asked Questions

Related Development Tools

Share Your Feedback

Help us improve this tool by sharing your experience

We will only use this to follow up on your feedback