Skip to content

URL Encoder & Decoder – Percent-Encode Query Strings

Encode and decode URLs online for free with ToolGuru. Percent-encode spaces, query parameters, and special characters — or decode them back — in your browser.

Mode

🔒 Your data is processed in your browser and is not uploaded to our server.

Free URL encoder and decoder

Percent-encode a URL or query string, or decode it back to readable text. This URL encoding tool uses the browser’s native APIs so spaces, ampersands, and Unicode become the same sequences you would get in JavaScript.

Encode a URL or query parameter

Paste a full URL or a single value such as a search term. Encoding replaces reserved characters so the string is safe in a query. Use this when you are building links by hand or debugging a redirect.

Decode percent-encoded text

Paste an encoded value to see the original characters. Incomplete sequences such as a trailing % produce a clear error: the encoded value appears to be invalid.

Related developer tools

Convert binary-safe strings with the Base64 Encoder / Decoder, format API JSON with the JSON Formatter, or turn a link into a scannable code with the QR Code Generator.

How to Encode or Decode a URL

  1. Step 1

    Choose encode or decode

    Encode turns a URL or query value into percent-encoding. Decode turns encoded text back into readable characters.

  2. Step 2

    Paste the URL or text

    Use a full URL, a query parameter, or any string with spaces, Unicode, or special characters.

  3. Step 3

    Convert and copy

    The browser encoding APIs run locally. Copy the result, or fix invalid encoded input from the error message.

Frequently Asked Questions

What is URL encoding?

URL encoding (percent encoding) replaces spaces and special characters with % sequences so a string is safe in a URL or query parameter. For example, a space becomes %20.

How do I encode a URL online?

Choose Encode, paste the URL or text, and convert. ToolGuru uses the browser’s encodeURIComponent API so the result matches what JavaScript would produce.

How do I decode a URL?

Choose Decode and paste the encoded value. Plus signs are treated as spaces. If the percent-encoding is broken, you will see a clear error.

Does this handle Unicode in URLs?

Yes. Unicode characters are encoded to UTF-8 percent sequences and decoded back to the original text.

Is this URL encoder free?

Yes. Encode and decode without an account or payment.

Is my URL uploaded to a server?

No. Your data is processed in your browser and is not uploaded to our server.

Related tools