Tool 20

URL Encoder

Encode text for a URL, or decode it back — both directions.

Convert URL encoding

Handles spaces, symbols, and special characters.

20 / no login
Converted
Your result appears here.

How the url encode/decode works

Paste text and press "Encode URL" to convert spaces and special characters into percent-encoded form (like %20 for a space) so it's safe to use inside a URL. Paste an already-encoded string and press "Decode URL" to turn it back into readable text.

Uses the same encoding JavaScript's encodeURIComponent/decodeURIComponent use, which covers query parameters, form values, and most URL components correctly.

Common uses

  • Encoding a search query or form value to safely put in a URL
  • Decoding a URL parameter to see what it actually contains
  • Preparing text for an API request that requires URL encoding
  • Debugging a link that isn't working because of unencoded characters

FAQ

What gets encoded?
Spaces, and any character that isn't a letter, number, or one of a few safe symbols, get converted to percent-encoded form.
What happens if I decode invalid encoding?
You'll see an error message instead of garbled output, so you know the input wasn't valid URL encoding.
Is my text saved anywhere?
No. Conversion happens locally in your browser and nothing is uploaded.