Free URL Encoder & Decoder

Free URL encoder and decoder. Encode or decode URLs and query parameters online, converting special characters to percent-encoding and back instantly. Private.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideURL Encoding Explained - Percent-Encoding, %20 vs + and Common Bugs →

About the URL Encode / Decode tool

URLs can only carry a limited set of characters. Spaces, ampersands, question marks, non-English letters and emoji all have to be converted to percent-encoding, such as %20 for a space, before they can be placed safely inside a link or query string. This URL encoder does that conversion for you, and the decoder turns percent-encoded text back into something you can read.

Encoding uses JavaScript’s encodeURIComponent, the same function most web apps use for query parameter values. It encodes every reserved character, including / ? & = and #, so it is ideal for a single parameter value, a redirect URL passed as a parameter, or UTF-8 text such as names in Hindi. Decoding uses decodeURIComponent and will warn you if the input contains a broken sequence like a lone % sign.

The conversion runs instantly in your browser. Links containing session IDs, tracking parameters or personal data never leave your device, so you can safely decode URLs copied from logs, emails and analytics tools. Paste a single value or a long tracking link and you get the result in one click.

How to use URL Encode / Decode

  1. Select “Encode” or “Decode” at the top.
  2. Paste the text or URL into the Input box.
  3. Click the “Encode” or “Decode” button to see the result in the Output panel.
  4. Use the swap arrows if you want to reverse the result and convert it back.
  5. Click “Copy Result” to copy the converted text.

Features

Component-safe encoding

Uses encodeURIComponent, so reserved characters like & and = are escaped and cannot break your query string.

Full Unicode support

Non-English text and emoji are encoded as UTF-8 percent sequences.

Clear decode errors

Malformed sequences such as a stray % are reported instead of producing garbled output.

Swap direction

Flip between encoding and decoding with the current result as the new input.

Runs in the browser

No request is made to any server while you encode or decode.

When to use it

  • Encode a search term or email address before adding it to a query string.
  • Pass a full return URL as a parameter in an OAuth or payment redirect.
  • Decode long UTM-tagged or tracking links to see where they really point.
  • Read percent-encoded file names and paths from server logs.
  • Prepare values for curl commands and API testing tools.

Frequently asked questions

Why are slashes and colons encoded too?

This tool uses encodeURIComponent, which is meant for individual values, so it escapes / : ? & = and #. To keep a full URL working, encode only the parameter values, not the whole address.

Are spaces encoded as + or %20?

Spaces become %20. Note that the decoder does not turn + into a space, because + is only a space in HTML form encoding, not in general URLs.

What does “Invalid input for decoding” mean?

The text contains a % that is not followed by two valid hex digits, or a byte sequence that is not valid UTF-8. Check for truncated or double-edited links.

Can I encode text in Hindi or other languages?

Yes. Each character is converted to its UTF-8 bytes and percent-encoded, which all modern browsers and servers understand.

Is my URL stored or logged?

No. Encoding and decoding happen in your browser and nothing is sent over the network.

What is the difference between URL encoding and Base64?

URL encoding only escapes characters that are unsafe in a URL and leaves letters and digits readable. Base64 rewrites all of the data into a different alphabet and makes it about a third longer.

Related tools