Skip to content

URL Encoder & Decoder

Encode and decode URL text, query values, and reserved characters.

Plain Text
URL Encoded

URL encoding

URL encoding turns characters such as spaces, ampersands, question marks, and non-ASCII text into a form that can safely sit inside a URL. For example, a space becomes %20 and & becomes %26.

This matters most in query parameters. Without encoding, a value likeR&D budget can be misread as more than one parameter.

Common tasks

Use the encoder before putting user input into a link or API request. Use the decoder when a log, redirect URL, or query string is hard to read.

  • Encode search terms, callback URLs, and API query values
  • Decode copied URLs while debugging redirects
  • Check how non-English text or symbols will appear in a URL

How to use URL Encoder & Decoder

The URL encoder converts unsafe characters into percent-encoded text and can decode them back. It helps when building query strings or debugging links.

Developers often use this page when they need url encode, url decode, url encoder online, and url encoder decoder.

Privacy and data handling

This tool can handle security-sensitive text, so it is meant for local inspection and test data.

  • Normal use does not require uploading your input to a server.
  • Use redacted tokens, passwords, secrets, headers, and connection strings when possible.
  • Copy buttons use your browser clipboard permission, so clear the clipboard after handling secrets.

Examples

Encode a search query

Input

hello world & tools

Output

hello%20world%20%26%20tools

Spaces and ampersands need encoding when they are used inside a query parameter value.

Decode an encoded URL value

Input

name%3DAda%20Lovelace%26role%3Dadmin

Output

name=Ada Lovelace&role=admin

Decoding helps you read copied redirect URLs and query strings.

Steps

  1. 1Paste the URL part or text you want to encode.
  2. 2Encode or decode the value.
  3. 3Use the result in a URL, query parameter, or redirect target.

Common use cases

  • Encode spaces and special characters in query values.
  • Decode a copied URL to see the real text.
  • Prepare redirect URLs for tests.

Practical tips

  • Encode parameter values, not always the whole URL.
  • Do not double encode a value unless the receiving system expects it.
  • Check plus signs because some systems treat them as spaces.

FAQ

What is URL encoding?

URL encoding replaces unsafe characters with percent codes so the text can travel safely inside a URL.

Should I encode an entire URL?

Usually you encode a parameter value. Encoding a full URL can also encode slashes and colons, which may not be what you want.

Related Developer Tools