Micro Tools
Menu

URL Encoder / Decoder

Encode and decode URL components and query strings

Encoding Settings
Input (Original)
0 characters
Output (Encoded)
0 characters
Encoding Types
Understanding different URL encoding methods

URI Component (encodeURIComponent)

Encodes all characters except: A-Z a-z 0-9 - _ . ! ~ * ' ( )

Input: hello world!
Output: hello%20world!

Full URI (encodeURI)

Encodes characters except those that have special meaning in URIs: ; , / ? : @ & = + $ #

Input: https://example.com/hello world
Output: https://example.com/hello%20world

Form Data

Like URI Component but replaces spaces with + instead of %20

Input: hello world!
Output: hello+world!
Common Use Cases

When to Encode

  • Building query parameters with special characters
  • Passing URLs as parameters to other URLs
  • Storing URLs in databases or configuration files
  • Creating safe filenames from URLs

When to Decode

  • Reading URLs from logs or analytics
  • Processing form submissions
  • Debugging URL-related issues
  • Converting encoded URLs to human-readable format