URL Encoder

Encode special characters for safe URLs, or decode them back.

About URL Encoding

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

encodeURI(): Encodes a complete URL, preserving characters like : / ? & =

Common Uses:
  • Query parameters in URLs
  • Form data submission
  • API requests with special characters
  • Handling user input in web applications
Examples:
Encode: "hello world" → "hello%20world"
Decode: "hello%20world" → "hello world"

How to Use

  • Paste a URL or string.
  • Choose encode or decode.
  • Copy the result.

Features

  • Encode/decode toggle
  • Preserves structure
  • One-click copy

Benefits

  • Clean query parameters
  • Prevent broken links
  • Essential for web dev

Use Cases

  • Building API requests
  • Sharing complex URLs
  • Debugging redirects

Frequently Asked Questions

Quick answers about this tool.

Does it encode spaces as %20 or +?

It uses percent-encoding as per the encodeURIComponent standard.

Can I decode a full URL?

Yes, but be careful with already decoded parts.