URL Encoder & Decoder – Percent-Encoding with Charset Selection

A free online tool to percent-encode or decode URLs with special or non-ASCII characters.

URL Encode/Decode

URL Encoding

Encoding result

URL Decoding

Decoding result

Automate link and QR code creation with the API

URL encoding screen converting special and non-ASCII characters into percent-encoded text

3 common causes of URL encoding errors

Most URL encoding errors come from one of three causes.

  • Wrong mode: Using Standard for form submissions, or regular encoding in sitemap.xml, can make the server misread values.
  • Charset mismatch: If the sender and receiver use different charsets, text becomes garbled or data is lost.
  • Double encoding: Encoding an already encoded URL turns % into %25 and breaks the link. Turn on Prevent double encoding to avoid this.

Encoding modes compared: Standard, Form, URI & Sitemap

Choose the mode that fits your use case.

  • Standard: Encodes every character except ASCII letters, digits and - _ . ~, and converts spaces to %20. This is the most common mode.
  • Form: Uses the HTML form submission format and converts spaces to +.
  • URI: Keeps URL structure characters such as : / ? & = # @ and encodes only the rest. Best for converting complete URLs.
  • Sitemap: Built for sitemap.xml. Encodes in URI mode, then converts & to &amp; so you can use the result directly in <loc>.

Using the wrong mode can make the server misinterpret parameters or break links.

Choosing a charset: UTF-8, ISO-8859-1, Shift_JIS & more

Each charset converts characters to bytes with different rules. If the charsets do not match, the same bytes are read as different characters and the text breaks.

The web standard is UTF-8, but older systems and some regional environments still use legacy charsets. This tool supports 29 charsets, including UTF-8, UTF-16, UTF-32, ASCII, the ISO-8859 family, the EUC family, Shift_JIS, GB2312 and Big5.

Use the same charset on the sending and receiving side.

For example, “é” becomes %C3%A9 in UTF-8 but %E9 in ISO-8859-1. If the decoded text looks garbled, decode it again with the charset that was used to encode it.

URL encoding for APIs & query strings

When you call an external API, special characters or spaces in query string values can make the request fail. URL-encode the values so the server reads them correctly. For example, a space becomes %20, & becomes %26, and = becomes %3D.

The same rule applies to links in emails, social share URLs and OAuth callback parameters. If the domain contains non-ASCII characters, also use the Punycode Converter.

Decoding percent-encoded URLs

Paste a link full of sequences like %2F and %3A into the URL Decoding tab to see the original text. The tab also helps with server log analysis, API response checks and redirect parameter reviews.

Turn on Trim spaces in Conversion Options to remove spaces picked up during copying before the conversion runs. To organize text line by line, use the Text · IP Sorter.

Common percent-encoded values in Standard mode with UTF-8. Standard mode leaves ASCII letters (A–Z, a–z), digits (0–9) and - _ . ~ unchanged. To read + as a space when decoding, choose Form.

Character Encoded
Space %20 (Form: +)
" %22
# %23
% %25
& %26
+ %2B
, %2C
/ %2F
: %3A
= %3D
? %3F
@ %40

Frequently Asked Questions

URL encoding (percent-encoding) is the standard way to replace spaces, special characters and non-ASCII characters that URLs cannot contain with % followed by two hexadecimal digits. URLs are designed to use ASCII characters only, so sending these characters as is can make the server misinterpret them. For example, a space becomes %20 and & becomes %26.

Encoding converts text into the %xx format, and decoding turns the %xx format back into readable text. Switch between them with the tabs at the top of the tool. The mode and charset you choose for encoding also apply to the URL Decoding tab.

Most web environments use UTF-8. If you integrate with a legacy system or a region-specific service, choose that system’s charset. A different charset can break characters, so use UTF-8 if you are not sure.

Choose the Sitemap mode. It encodes the URL, then converts & to &amp; to follow XML rules, so you can paste the result directly into the <loc> value. Existing XML entities are not converted again.

Standard converts spaces to %20 and is used for REST API calls or when building URLs manually. Form converts spaces to + and is used for application/x-www-form-urlencoded form submissions. Mixing the two can make the server misread spaces.

In most cases, the charset or encoding mode is different. The same character has different byte values depending on the charset, such as UTF-8 or ISO-8859-1. Choose the same charset and mode as the other tool, and use UTF-8 and Standard if you are not sure.