Online URL Encoder & Decoder

Safely encode special characters for URL query strings, or decode percent-encoded URLs back into readable text.

Runs locally 0 lines • 0 bytes
Results update as you type
Input
Paste or type
Result
Updates as you type
// Converted text will appear here...
About this tool

About the URL Encode / Decode

Encode and decode URLs, query strings, and URI components online. Handles UTF-8 percent-encoding (%20, %2F) safely client-side.

How to use the URL Encode / Decode

  1. Paste the text or URL you want to convert.
  2. Choose Encode or Decode; keep Component mode on when encoding a single query value.
  3. Copy the result into your link, API request or code.

URL Encode / Decode example

Input
Encode: Ali & Sons / ₹500
Decode: q%3Djson%20tools
Result
Ali%20%26%20Sons%20%2F%20%E2%82%B9500
q=json tools

When to use it

  • Building query strings that contain spaces, ampersands or non-English characters.
  • Reading percent-encoded links copied from analytics tools or logs.
  • Debugging API requests and redirect URLs.

Tip: Component mode also encodes characters such as & / = and ?, which is what you want for a value but not for a whole URL.

Standard Percent-Encoding

Translates special characters into standard URL hex triplets (e.g. spaces become %20).

URL Component vs Full URL

Supports both encodeURIComponent (for query values) and encodeURI (for complete links).

Instant Decode Mode

Converts percent-encoded strings (%2F, %3F, %26) back into plain human-readable text.

Space as Plus Option

Optionally format spaces as plus signs (+) for standard form-urlencoded parameters.

FAQ

Common questions

Why do URLs need to be encoded?

URLs can only be sent over the internet using the ASCII character set. Characters like spaces, question marks, and ampersands have special syntax meanings and must be escaped.

What is the difference between encodeURI and encodeURIComponent?

encodeURI preserves valid URL structure characters like / and ?, while encodeURIComponent escapes everything suitable for query parameter values.

Does it support Unicode and emojis?

Yes, full UTF-8 encoding ensures international characters and emojis are properly encoded into valid percent sequences.

Is this tool safe for API tokens in URLs?

Yes, because processing runs 100% in your local browser and is never sent to our servers.