URL Encode / Decode

Use this free URL encode/decode tool to percent-encode URL component text, decode percent-encoded values, and choose plus-for-spaces handling for form-style query data.

All tools
Smoke mascot percent-encoding price=10&tax=2 into price%3D10%26tax%3D2 with %20 versus plus space and component-not-whole-URL warning cards.
URL Encode / Decode artwork matches the live workflow: encode URL component values, decode percent-encoded text, compare %20 with plus spaces, and avoid full-URL or double-encoding mistakes. View in the smoke-kawaii gallery
Inputs explained Result checks Example values Runs in your browser
URL-encoded componentprice%3D10%26tax%3D2

Text to percent-encoding

Input length
14
Output length
20
Spaces
%20 URI style

Formula steps

  1. Read the text as a URL component, such as a query value.
  2. Percent-encode reserved characters that would change URL meaning.
  3. Treat spaces as %20 for URI-style values.

How to use the URL Encode / Decode

  1. Choose Encode for readable component text or Decode for percent-encoded text.
  2. Turn on plus-spaces only when working with form-style values.
  3. Press Run URL tool to convert the component value.
  4. Encode query values and full URLs differently; this tool is best for components.

What people use it for

Encode a query value that contains &, =, spaces, or punctuation.

Decode percent-encoded text back into readable text.

Handle plus signs as spaces for form-style values.

Check developer examples locally in the browser.

Quick examples

Encode query value

price=10&tax=2

price%3D10%26tax%3D2

Decode query value

price%3D10%26tax%3D2

price=10&tax=2

Space handling

hello tools

hello%20tools or hello+tools in plus mode

Need the guide or a nearby tool?

Need a slower walkthrough, a related tool, or the full library? These links keep you close to the task you started.

Frequently asked questions

Plain-language answers about when to use the tool, what it does with your inputs, what to double-check, and how privacy works.

When should I use the URL Encode / Decode?

Use it when your task matches one of these common needs: Encode a query value that contains &, =, spaces, or punctuation. Decode percent-encoded text back into readable text. It works best when you already know the text, code, URL, mode, format, or technical setting the page asks for.

What is the URL Encode / Decode doing with my inputs?

In plain language: The tool uses percent-encoding for URL components. Unsafe or reserved characters are converted to UTF-8 bytes, then each byte is written as a percent sign followed by two hexadecimal digits. Spaces can stay as %20 or become + when form-style plus-spaces mode is selected. The examples on the page are there so you can compare your inputs with a filled-out example before copying the answer.

What do the main URL Encode / Decode inputs mean?

Mode: Choose Encode when you have readable text and want percent-encoded output. Choose Decode when you already have percent-encoded text. Input text: Paste the exact value you want to convert. Ampersands, equals signs, spaces, slashes, and punctuation can change how a URL is read. Plus-spaces: Turn this on for form-style query values where spaces are represented as + instead of %20. Component value: A query value like price=10&tax=2 should be encoded differently from a complete URL such as https://example.com/?q=test.

How should I read the URL Encode / Decode answer?

Read the output next to your original input. If the tool changes format, units, encoding, spacing, or capitalization, compare a small sample before copying the whole result into another app.

What should I double-check before trusting the answer?

Encode complete URLs and individual URL components differently. This tool is best for component values such as query parameters, path pieces, and small text snippets, not for blindly encoding an entire URL, secret token, or already-encoded string. Also check the selected mode, input format, encoding, and whether the text includes private keys, passwords, or sensitive data.

Should I encode a whole URL or just one part?

Usually encode only the part you are inserting, such as a query value or path segment. Encoding a whole URL can turn ://, ?, &, and = into text, which may stop the URL from working.

Why do spaces sometimes become %20 and sometimes +?

%20 is normal percent-encoding for a space. A plus sign is common in form-style query strings. Use plus-spaces only when the target system expects form-style values.

What happens if I encode something twice?

Double-encoding changes percent signs too. For example, %20 can become %2520. Decode once and inspect the result before encoding again.

Why did decoding fail or look strange?

Common causes include a broken percent triplet, copied whitespace, text that was not URL-encoded, or a plus sign that should stay as + instead of becoming a space.

Can I paste login links, tokens, or private query strings?

Do not paste real secrets, access tokens, signed URLs, private query strings, or session links into any tool unless you fully understand the risk. Encoding does not make them safe.

Is URL encoding the same as Base64?

No. URL encoding protects characters so they can travel inside URLs. Base64 changes bytes into printable text for a different set of use cases.

Does the site save what I enter?

No. The tool runs in your browser tab. Your recent answers stay only on the page while you use it, and they are not sent to a server.

Related tools