URL encoding

URL Encoding/Decoding

You can encode text, spaces, symbols, emojis, and non-ASCII characters into a format that is safe for use in URLs, or decode strings that have been converted to a format like %E3%81%82 back into their original text.

Translation
Waiting for input
Enter text or a URL-encoded string and click "Convert."

Output

What is URL Encoding/Decoding?

URL encoding and decoding are tools used to convert characters that are difficult to use as-is in URLs into a format that is easy to handle on the web, or to convert encoded strings back into their original, readable form. While alphanumeric characters and some symbols can be used directly in URLs, spaces, emojis, non-ASCII characters, and certain symbols may not be interpreted correctly depending on the environment. Therefore, text from many writing systems can be converted to a percent-encoded format such as "%E2%9C%93". Knowledge of URL encoding is often necessary when including search keywords in URL queries, passing parameters to APIs, or sharing long URLs via email or chat.

With this tool, simply paste your text and select an encoding to generate a string suitable for use in URLs. Conversely, you can decode strings like %E2%9C%93 or encoded values contained in query parameters to view the original text, symbols, or Unicode characters. We offer two types of encoding depending on your needs. "For parameter values" is suitable when you want to convert parts of a URL, such as search terms or form values. "For entire URLs" is used when you want to convert only necessary characters, such as non-ASCII characters or spaces, while retaining the URL structure (e.g., : / ? & = #) as much as possible.

In practice, it’s important to note that it’s easy to confuse situations where the entire URL should be encoded with those where only the parameter values should be encoded. For example, when creating a search URL, if you only want to convert the search term following “q=”, the conversion option for parameter values is appropriate. On the other hand, if you want to keep the entire existing URL legible while converting only the non-ASCII portions to a safe format, selecting the option for the entire URL makes it easier to verify. If you encounter terms like "URL-encoded value," "percent-encoding," or "encoded query" in API specifications or external service management screens, you can use this tool to quickly compare the values before and after conversion.

URL encoding is not encryption. Although the encoded string may appear unreadable, the original content can be recovered by decoding it. Therefore, URL encoding passwords, API keys, access tokens, personal information, and other sensitive data does not securely hide them.Additionally, including sensitive information in URLs may leave traces in browser history, access logs, referrers, and analytics tools. While the converted results can be copied or downloaded—making them useful for creating test data or investigating bugs—please exercise extreme caution when handling confidential information.

  • You can URL-encode text, spaces, symbols, emojis, and non-ASCII characters.
  • You can decode URL-encoded strings such as %E3%81%82.
  • You can choose between two types: one for parameter values and one for the entire URL.
  • You can copy the translation results or save them as a text file.

How to Use URL Encoding/Decoding

First, paste the string you want to convert into the input field. You can enter URLs containing international characters, search keywords, API query parameters, form values, and strings that have already been encoded. Next, select "Encode" if you want to convert the original string for use in a URL, or "Decode" if you want to restore a string containing % symbols to its original form. When encoding, select either "For parameter values" or "For entire URLs" depending on your needs. Finally, click "Convert" to display the result in the output field.

"Parameter Values" is recommended when creating values to be embedded as part of a URL. For example, when inserting search terms, tag names, or redirect URLs into the parameter values of another URL, this mode is safer because characters like & and = must be treated as part of the value. "For Entire URLs" is useful when you want to convert international characters or spaces while preserving the URL's separators. If you're unsure which to use, consider this: if you're only generating query parameter values, use "For Parameter Values"; if you want to format a completed URL, use "For Entire URLs."

During decoding, percent-encoded strings such as %E3%81%82 are converted back to their original characters.Since the + symbol is often used as a space in form submissions, this tool treats it as a space during decoding. An error will occur if the input contains invalid % notation or a broken encoding string. When using the converted content, please utilize the copy, download, and input functions, as well as the mode switch.

  1. Paste text, a URL, or a URL-encoded string into the input field.
  2. Select "Encode" or "Decode."
  3. When encoding, choose either "for parameter values" or "for the entire URL."
  4. Click the "Convert" button to view the output.
  5. Save the results using "Copy Results" or "Download TXT" as needed.

Important notes when using

  • URL encoding is not encryption. Since the original content can be read after decoding, it cannot be used to protect sensitive information.
  • If you encode the entire URL for parameter values, characters such as "/" and "?" will also be converted. Please select the mode that best suits your needs.
  • Strings containing invalid % notation may not be decoded.
  • If personal information or authentication credentials are included in the URL, they may be recorded in your browser history or access logs.

Frequently Asked Questions

What is URL encoding?

This involves converting characters that are difficult to handle directly in URLs into percentage notation, such as %E2%9C%93. This is used to safely handle non-ASCII characters, spaces, and certain symbols within URLs.

What is URL decoding?

This involves converting URL-encoded strings back to their original characters. For example, percent-encoded values such as %E2%9C%93 can be restored to readable text.

Is URL encoding the same as encryption?

No. URL encoding is not encryption. It simply converts text into a format that can be handled in a URL, so anyone can decode it.

Can URLs containing non-English characters be encoded?

Yes. URLs and search terms containing characters from many languages can be converted to UTF-8 URL-encoded format.

How are spaces converted?

During encoding, spaces are typically converted to %20. During decoding, the + character—which is often used as a space in form submissions—is also treated as a space.

What does "for parameter values" mean?

This mode converts values to be included in URLs, such as search terms and form values. It also converts characters like & and = so they can be treated as valid values.

What does "for the entire URL" mean?

This mode converts necessary parts such as non-ASCII characters and spaces while retaining symbols that represent the URL structure, such as https://, /, ?, and &, as much as possible.

Which encoding option should I choose?

As a general rule, select "For parameter values" if you are only creating query parameter values, and "For entire URLs" if you are formatting the entire completed URL.

What is causing the decoding error?

The string may contain broken URL-encoded data, such as a "%" character not followed by two hexadecimal digits.

Can emojis be URL-encoded?

Yes. Emojis can also be URL-encoded as UTF-8. However, please verify separately whether the destination service accepts emojis.

Does URL-encoded text affect SEO?

Generally, browsers and search engines can interpret encoded URLs. However, designing URLs that are easy for humans to understand and standardizing canonical URLs are also important.

Can this be used to create API query parameters?

Yes. You can use this when creating values such as search terms, tags, and redirect URLs to be passed to the API. If the specification document specifies an encoding method, please follow those specifications.