1. Home
  2. Developer tools
  3. URL Encode / Decode

URL Encode / Decode

Encode text for safe use in a URL, decode percent-encoded strings, or inspect every part of a URL.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use URL Encode / Decode

  1. Paste a URL or text.
  2. Choose Encode or Decode.
  3. Copy the result or read the parameters.

Features

  • Component or full-URL encoding
  • + as space in queries
  • URL parser with parameter table

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the URL Encode / Decode is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Guide

Percent-encoding URLs and query parameters correctly

URLs can only contain a limited set of characters. Spaces, accents, emoji and characters that have a job in URLs, such as &, =, ? and #, must be percent-encoded when they appear as data. A space becomes %20, é becomes %C3%A9. Getting this wrong breaks links, cuts off search terms at an ampersand, or silently changes a redirect address. This tool encodes and decodes correctly and takes long URLs apart so you can read them.

Encoding

  1. Choose Encode.
  2. Pick the scope:
    • Parameter value (encodeURIComponent): for text you put into a URL, such as a search query, a name or a return URL. It encodes everything except letters, digits and - _ . ! ~ * ' ( ).
    • Whole URL (encodeURI): for a complete address that just contains spaces or non-ASCII characters. It keeps : / ? & = # so the URL still works.
  3. Optionally use Spaces as + for form-style query strings.
  4. Copy the result.
Input Parameter value Whole URL
rock & roll rock%20%26%20roll rock%20&%20roll
café caf%C3%A9 caf%C3%A9
a/b?c=d a%2Fb%3Fc%3Dd a/b?c=d

The first row shows why the scope matters: as a parameter value, an unencoded & would split the value in two.

Decoding

Choose Decode and paste encoded text or a full URL. Turn on Spaces as + when the data came from an HTML form or a search engine URL, where + stands for a space. If the text has a broken sequence, such as a lone % or %G1, you’ll get an error rather than a wrong result.

Taking a URL apart

When the input is a full URL, the tool lists its parts: protocol, host, path and fragment. It also shows a table of all query parameters with decoded values. That’s handy for:

  • Reading UTM tracking parameters on marketing links.
  • Finding the real destination hidden in a redirect parameter before you click.
  • Debugging OAuth callbacks and API requests with many parameters.

Common mistakes

  • Double encoding: %2520 in a URL means %20 was encoded again. Decode twice to see what happened, then encode only once in the code.
  • Encoding the whole URL as a component: https%3A%2F%2F… is right inside a parameter but breaks a link you want to click.
  • Building query strings by hand: in code, prefer a URL or URLSearchParams API, which encodes for you.
  • Forgetting the fragment: everything after # is never sent to the server.

Privacy

URLs often contain email addresses, tokens or session IDs. Encoding, decoding and parsing all happen in your browser.

Who encodes and decodes URLs

  • Developers build query strings and debug redirects and OAuth flows.
  • Marketers create and read UTM tracking links.
  • SEO specialists check URLs with special characters and parameters.
  • Support staff read long links customers send.
  1. Start with the landing page: https://example.com/spring-sale.
  2. Encode each parameter value as a Parameter value: the campaign name Spring Sale 2026 becomes Spring%20Sale%202026.
  3. Build the link: https://example.com/spring-sale?utm_source=newsletter&utm_campaign=Spring%20Sale%202026.
  4. Paste the finished link and choose Decode to check the parameter table shows each value correctly.

Tips

  • Encode values, not whole URLs, when building links by hand.
  • Use lowercase, hyphenated campaign names to avoid encoding altogether.

Checked against the current version of the URL Encode / Decode on .

Frequently asked questions

When should I encode a whole URL versus a parameter?

Encode a parameter value (encodeURIComponent) when you're inserting text into a URL, such as a search term or a return address, because it also encodes & = ? / and #. Encode a whole URL (encodeURI) only to clean up spaces or non-ASCII characters in an otherwise complete address; it leaves the URL's structure intact.

Should a space be %20 or +?

%20 works everywhere in a URL. + means a space only in the query string of form submissions (application/x-www-form-urlencoded). When decoding data that came from a form, turn on the + option so plus signs become spaces.

Why does my URL contain %2520?

It was encoded twice. %20 (a space) was encoded again, turning % into %25. Decode once to see %20, decode again to get the space, and fix the code so it encodes only once.

How do I read the parameters of a long tracking link?

Paste the link and choose Decode. The tool lists the protocol, host and path, and a table of every query parameter with its decoded value, such as utm_source, utm_campaign or a redirect address.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.