Percent-encode or decode text and URLs with component, whole-URL or form (+) style, and break a URL down into its parts and query values.
Input
Result
Result
URL breakdown
Protocol
https
Hosts
example.com
Path
/검색
Parameter
Value (decoded)
q
page
Which method should I use?
For a single query value (?q=here), use 'Single value'. It stays safe even with & or =.
To use a whole address containing non-ASCII text as a link, use 'Whole URL'. The URL structure stays intact.
Form submissions and some APIs send spaces as +. When decoding, turn off 'Treat + as space' if the + was a real plus sign.
Related searches
URL Encoder/Decoder
URL Encoder
url encoder tool
url encoder online
url encoder svg
url encoder for svg
online url encoder
url encoder for -
url encoder for /
What is URL Encoder/Decoder?
Converts Korean characters, spaces and special characters that cannot go in a URL into %XX form, or converts them back.
How to use
1
Choose encode or decode.
2
Paste a URL or string.
3
Copy the result.
Tips
Encode only the query value, not the whole URL, so that separators such as / and ? are not broken.
Frequently asked questions
QWhich should I choose: single value, whole URL, or form submission?
For a single query value (?q=here), use single value. It encodes everything including / ? & =, so it is safe. When you want to use a whole URL mixed with Hangul as a link, choose whole URL, which keeps the URL structure and changes only Hangul and spaces.
QWhen I decode, + turns into a space. What should I do?
Text encoded in form style has spaces as +, so by default + is turned into a space. If the original character was a +, turn off the option to treat + as a space in decode mode. Encoding in form submission mode produces + for spaces.
QDecoding fails or %XX keeps remaining. Why?
If a % is not followed by two valid hex digits, it shows as a string that cannot be decoded and tells you the position of the bad % code. If %XX remains in the decoded result, the text may have been encoded twice, and the decode once more button can unwrap it.
Learn more
1Why is percent-encoding needed?
In an address (URL), only English letters, digits and a few symbols can be used as they are. Characters such as Hangul, spaces, & and = can be read as having a different meaning inside an address, so they are rewritten as '%' followed by two hexadecimal digits. This conversion is called percent-encoding (URL encoding).
A Korean character is 3 bytes in UTF-8, so each character gets three %XX groups. For example, '안녕 하세요' becomes %EC%95%88%EB%85%95%20%ED%95%98%EC%84%B8%EC%9A%94. The %20 in the middle is the space.
2What is the difference between the value, whole URL and form modes?
The 'value' mode is for converting a single value that goes inside an address (for example a search term). It converts separators such as &, =, ? and / too, so 'a&b=c' becomes a%26b%3Dc. The 'whole URL' mode leaves separators alone and converts only Hangul and spaces, so https://example.com/검색?q=커피 맛집 becomes https://example.com/%EA%B2%80%EC%83%89?q=%EC%BB%A4%ED%94%BC%20%EB%A7%9B%EC%A7%91.
The 'form' mode is the form used when an input form is submitted, and differs in writing a space as + instead of %20. Which mode is right follows the rule of whoever receives the value, and if unsure, using the 'value' mode for a single query value is safe.
3Common mistakes
If you convert a whole address in 'value' mode, even the separators change, as in https%3A%2F%2F, and the link will not open. Conversely, converting an already encoded string once more changes % into %25 and gives double encoding such as %25EC%2595. If the result looks odd, decode it once and check whether the original text comes back.
The text you enter is converted only in your browser and not sent to a server. If you enter a URL, it shows the address and query values split apart, so you can also use it to see which values are inside a long address.
4Why do Korean (Hangul) characters turn into things like %EB%AA%A8 in a URL?
Only a limited set of characters, such as letters and digits, can appear in a URL, so other characters are written by turning their UTF-8 bytes into a percent sign followed by two hex digits.
For example, the character 모 is three bytes in UTF-8, EB AA A8, so it becomes %EB%AA%A8.
One Hangul character grows to 9 characters (three %XX groups), so URLs with a lot of Hangul get noticeably longer.
5Which characters have a special meaning in a URL?
There are reserved characters that divide up the structure of a URL, and you must encode them if you want to use them as part of a value.
?
Meaning in a URL
Start of the query
When used as a value
%3F
&
Meaning in a URL
Separates query values
When used as a value
%26
=
Meaning in a URL
Separates a name and its value
When used as a value
%3D
#
Meaning in a URL
Position within the document (hash)
When used as a value
%23
/
Meaning in a URL
Path separator
When used as a value
%2F
+
Meaning in a URL
Space in a form
When used as a value
%2B
Character
Meaning in a URL
When used as a value
?
Start of the query
%3F
&
Separates query values
%26
=
Separates a name and its value
%3D
#
Position within the document (hash)
%23
/
Path separator
%2F
+
Space in a form
%2B
6Is a space %20 or a plus sign (+)?
In ordinary URL encoding a space is %20, and it becomes a plus only in the HTML form submission style.
So whether to turn a plus into a space when decoding depends on where the value came from.
This tool has an option for whether to read a plus as a space, which prevents the accident of a value that was originally a plus turning into a space.
If you put an email address like a+b@example.com directly into a query, the plus is easily read as a space, so always encode the value.
7What happens if I encode twice?
Encoding an already encoded value again turns the percent sign itself into %25, which breaks the URL.
For example, %EB becomes %25EB, and if the server decodes only once, you get the text %EB instead of the original character.
If you see %25 in the result, suspect double encoding.
This tool tells you if %XX remains after decoding and lets you decode once more.
Check whether your library already encodes automatically before encoding again by hand.
8How are encodeURI and encodeURIComponent different?
encodeURI is for a whole URL, so it leaves the structural characters alone, while encodeURIComponent is for a single value, so it converts the structural characters too.
In this tool, single value mode matches encodeURIComponent, whole URL mode matches encodeURI, and form mode converts spaces to plus signs.
9Why shouldn't I encode a whole URL in single value mode?
Because the structural characters get converted too, and the URL no longer works as a URL.
https:// becomes https%3A%2F%2F, and the browser cannot tell where to go.
The right way is to pick out only the query values, encode them, and join them together.
10Why do characters break or errors appear when decoding?
Errors happen when the value was not encoded in UTF-8 or when what follows a percent sign is wrong.
Older sites encode in EUC-KR, so reading them as UTF-8 garbles the characters.
A % with no hex digits after it is a format error.
A value cut off in the middle leaves a character incomplete, which causes an error.
Check whether one or two characters at the end, including a %, were lost while copying.
This tool decodes based on UTF-8.
11Are Korean domain names and Korean paths handled the same way?
No. The domain name is handled with Punycode (starting with xn--), while the path and query use percent encoding.
A Korean domain looks Korean in the browser address bar, but internally it is converted to a form starting with xn-- before being sent.
This tool handles percent encoding for paths and queries and does not convert domains.
12Which functions do different programming languages use?
Names differ by language and so does the way spaces are handled, and knowing the differences explains why results differ.
JavaScript
Function
encodeURIComponent
Space result
%20
JavaScript
Function
URLSearchParams
Space result
+
Python
Function
urllib.parse.quote
Space result
%20
Python
Function
urllib.parse.quote_plus
Space result
+
Java
Function
URLEncoder.encode
Space result
+
Language
Function
Space result
JavaScript
encodeURIComponent
%20
JavaScript
URLSearchParams
+
Python
urllib.parse.quote
%20
Python
urllib.parse.quote_plus
+
Java
URLEncoder.encode
+
13How do I process multiple lines and query strings at once?
Turn on the per-line conversion option and each line is treated as a separate value.
When you decode a URL that has a query, the names and values are shown split into a table, which makes it easy to see which parameters are included.
Everything you enter is processed only inside your browser.
14What parts is a URL made of?
A URL is divided into scheme, host, path, query, and hash, and the characters that need encoding differ slightly in each part.
Taking https://example.com/검색/결과?q=모아키트&page=1#top as an example, it splits up as shown below.
Scheme
Example
https
What to encode
None
Host
Example
example.com
What to encode
Punycode if Korean
Path
Example
/검색/결과
What to encode
Hangul, spaces, etc.
Query
Example
q=모아키트&page=1
What to encode
Hangul and & = inside values
Hash
Example
#top
What to encode
Hangul, spaces, etc.
Part
Example
What to encode
Scheme
https
None
Host
example.com
Punycode if Korean
Path
/검색/결과
Hangul, spaces, etc.
Query
q=모아키트&page=1
Hangul and & = inside values
Hash
#top
Hangul, spaces, etc.
15What if a link breaks in KakaoTalk or another messenger?
If a link breaks because the URL contains Hangul, parentheses, or spaces, encoding those parts before sending usually fixes it.
In particular, URLs ending with a closing parenthesis or a period make it easy for a messenger to misjudge where the link ends.
Encode URLs that contain Hangul using whole URL mode before sending.
Turn spaces into %20.
Turn parentheses into %28 and %29 so the link does not break.
When adding explanatory text after a URL, leave one space.
16Why do Korean file names break when downloading?
It breaks because the way the server sends the file name differs from the way the browser reads it.
The standard says that when a file name uses non-ASCII characters, the UTF-8 value should be percent-encoded and sent in the filename* form.
If you are a server developer, put the UTF-8 encoded file name value in the header, and you can preview the result with this tool.
17How are commonly used characters encoded?
Knowing the values of characters you often meet lets you read URLs on sight.
Space
Encoded value
%20
Double quote
Encoded value
%22
Percent (%)
Encoded value
%25
Single quote
Encoded value
%27 (left as is in single value mode)
Hangul 가
Encoded value
%EA%B0%80
Hangul 나
Encoded value
%EB%82%98
Character
Encoded value
Space
%20
Double quote
%22
Percent (%)
%25
Single quote
%27 (left as is in single value mode)
Hangul 가
%EA%B0%80
Hangul 나
%EB%82%98
가 is EA B0 80 in UTF-8, and 나 is EB 82 98.
18How do I put JSON or another URL into a query value?
Encode it once in single value mode, and decode it only once on the receiving side.
A typical case is putting a return address (redirect) after login into the query. The ? and & inside that address must be encoded so they do not mix with the outer query.
If the number of encoding steps is off, you get double encoding or missing encoding, so check at which stage the encoding happens.
19Can I trust URL encoding for security?
Encoding only fixes the format and is not a security measure.
Malicious input hidden by percent encoding returns to its original form once the server decodes it.
The server should validate the value after decoding.
Putting passwords or tokens in a URL can expose them through logs and sharing.
This tool processes everything in the browser, but do not share sensitive URLs.
20How do I read an already encoded URL in a friendlier form?
Paste the URL in decode mode and it appears in readable text, and if there is a query, the names and values are laid out in a table.
It is useful for reading which search terms and options a search result URL contains.
When checking advertising or tracking parameters
When previewing where a shared link goes
When reading encoded request URLs in server logs
21How do I handle a value that contains a slash in a path?
If a single path segment contains a slash, it must be changed to %2F so it is not mistaken for a path separator.
Single value mode also encodes slashes, so it suits building path segments, while whole URL mode leaves slashes alone, so use it on an already assembled URL.
Some servers block paths containing %2F for security reasons, so check the behavior.
22How do I use the same name several times in a query string?
You can repeat the same name or use bracket notation, and which style is accepted differs by server.
For example, many servers read tag=a&tag=b as multiple values, while some environments require the form tag[]=a&tag[]=b.
Brackets are reserved characters in URLs, so strict environments may require encoding them as %5B and %5D.
23Why does the encoded result come out in uppercase?
The standard recommends writing the hex digits after a percent sign in uppercase, but lowercase is accepted as having the same meaning.
So %eb%aa%a8 and %EB%AA%A8 refer to the same character.
However, in places that compare strings exactly, such as APIs that compute signatures, a difference in case makes the signature fail, so check the form they require.
This tool produces the same uppercase output as the standard JavaScript functions.
24Are there examples worth practicing encoding and decoding with?
Enter the examples in the table below into the tool and compare the results to get a feel for the differences between modes.