URL Encoder/Decoder

Encode, decode URLs and parse query strings

Encoding method
Encode spaces as

What is URL Encoder/Decoder?

The URL Encoder/Decoder is a free online tool that converts text into URL-safe percent-encoding and back, and helps you build or parse query strings. URLs may only contain a limited set of characters, so spaces, ampersands, question marks, and non-Latin letters must be percent-encoded — for example a space becomes %20 and an ampersand becomes %26. This tool encodes any value for safe use in a link, decodes percent-encoded text, and includes a query-string parser that splits a URL into its key/value parameters and re-encodes them. You can choose between component encoding (encodeURIComponent) for a single value and full-URL encoding (encodeURI) for an entire address, and pick whether spaces become %20 or +. A visual builder assembles query strings, and a batch mode encodes or decodes many lines at once. Everything runs in your browser with no signup.

How to use URL Encoder/Decoder?

Encoding, decoding, parsing, or batch processing takes only a moment and happens entirely in your browser:

  1. 1 Type or paste the text or URL component that needs converting. This might be a search term with spaces, a parameter value with special characters, or an already-encoded string.
  2. 2 Choose the encoding method — component (encodeURIComponent) escapes reserved characters like / ? & = # and suits a single value, while full URL (encodeURI) keeps the link structure intact. Then choose whether spaces become %20 (standard) or + (form / query style).
  3. 3 Click Encode to convert special characters into percent-encoded form, or Decode to restore an encoded string to readable text. Decoding automatically treats + as a space when the plus option is selected.
  4. 4 Switch to the Query Parser mode to break a full URL or query string into a clean list of key/value pairs, edit them in the visual builder, and read both the rebuilt and re-encoded query strings as you type.
  5. 5 Use Batch mode to encode or decode many items at once — each line is processed independently and blank lines are preserved, which is handy for converting lists of slugs, parameters, or search terms in bulk.

Why use this tool?

Improperly encoded URLs are a common source of broken links and failed API calls. A single unencoded ampersand or space can split a parameter in two or truncate a request. Picking the right encoding method matters too: full-URL encoding preserves the slashes and question marks that define a link, while component encoding escapes them so a value can never break out of its parameter. Decoding lets you read what a link actually contains, the parser turns a tangled query string into a readable list, and batch mode converts whole lists in a single step. Because everything runs locally in your browser, your data stays private.

Examples

Encoding a search query

Turn laptop & tablet deals into laptop%20%26%20tablet%20deals so it can be safely placed in a query parameter without breaking the URL.

Decoding a percent-encoded link

Paste https://site.com/search?q=hello%20world and decode the parameter to read the human-friendly value hello world.

Spaces as + for forms

Switch the space option to + to produce form-style query values such as laptop+%26+tablet, then decode them back to plain text exactly as a server would.

Parsing and re-encoding a query string

Drop a long URL into the Query Parser to split it into a clean table of keys and values, then copy the re-encoded query string.

Batch converting a list

Paste a list of search terms or slugs into Batch mode and encode every line at once.

Frequently Asked Questions

Is the URL Encoder/Decoder free to use?

Yes. The tool is completely free, with no signup, no limits, and no account required. You can encode, decode, parse, and batch-process as many URLs as you like.

Is my data sent to a server?

No. All encoding, decoding, parsing, and batch processing happen entirely in your browser, so your text and URLs are never uploaded or stored anywhere.

When should I encode a URL component?

Always encode any value you insert into a URL that may contain spaces, ampersands, slashes, or non-Latin characters. This keeps parameters intact and prevents broken or misread links.

What is the difference between component and full-URL encoding?

Component encoding (encodeURIComponent) escapes reserved characters such as / ? & = # and is meant for a single value. Full-URL encoding (encodeURI) leaves those structural characters untouched so it can be applied to a whole address.

What is the difference between encoding spaces as %20 or +?

Both can represent a space, but %20 is the standard percent-encoding used everywhere in a URL, while + only means a space inside form-encoded query strings. The tool lets you choose, and decoding reverses your choice.

Can it parse an existing query string?

Yes. The Query Parser mode takes a full URL or query string, splits it into a readable list of key/value parameters, and rebuilds a re-encoded query string you can copy.

How does batch mode work?

Batch mode encodes or decodes each line of your input independently using the same options, preserving the order and any blank lines, so you can convert long lists in one click.

Related Tools

Explore more free tools you might find useful