About this tool
Encode and decode URLs in bulk, line by line, and edit query parameters in a URL editor that keeps duplicate keys and order. Component and form modes are separate, so plus signs are not mistaken for spaces.
Typical uses
- Decode unreadable non-ASCII URLs from logs
- Edit query parameters while debugging an API
- URL-encode a column of keywords at once
How to use
Paste or import text and choose URI component or form-query mode. Encode or decode once, optionally line by line.
Switch to the URL editor for full URLs. Edit parameters while retaining duplicate keys and order, then build, copy or download.
Parse a URL containing tag=a&tag=b, edit the second tag and rebuild the URL without changing parameter order. Batch decoding flags invalid lines while continuing the rest.
Text: 1 MB and 2,000 lines. URLs: 65,536 characters and 500 parameters. Parses without visiting. Form mode treats + as a space; invalid encoding is reported per line. Generation normalizes URLs and encoding; do not rewrite signed URLs.
Input URLs are never visited and decoding runs only once. Rebuilding normalizes encoding; preserve the original form of signed or temporary links. Presets exclude URLs and text.
Which characters each encoding mode escapes
“Encoding mode” has two choices. “URI component (+ stays a plus)” is JavaScript’s encodeURIComponent; “Form query (+ means space)” follows the WHATWG URL Standard’s application/x-www-form-urlencoded rules, the same encoding a browser uses when it submits a GET form. Every cell below is the tool’s actual “Encode” output:
| Character | URI component (+ stays a plus) | Form query (+ means space) |
|---|---|---|
| (space) | %20 | + |
| + | %2B | %2B |
| & | %26 | %26 |
| = | %3D | %3D |
| / | %2F | %2F |
| ? | %3F | %3F |
| # | %23 | %23 |
| % | %25 | %25 |
| ! | ! | %21 |
| ' | ' | %27 |
| ( | ( | %28 |
| ) | ) | %29 |
| ~ | ~ | %7E |
| * | * | * |
| - | - | - |
| _ | _ | _ |
| . | . | . |
| 你 | %E4%BD%A0 | %E4%BD%A0 |
| é | %C3%A9 | %C3%A9 |
| 😀 | %F0%9F%98%80 | %F0%9F%98%80 |
| hello world | hello%20world | hello+world |
- Of the ASCII punctuation, component mode leaves only these unchanged: ! ' ( ) * - . _ ~. Form mode leaves only: * - . _. The difference is the space and the five characters ! ' ( ) ~.
- Spaces become %20 in component mode and + in form mode. A literal plus sign becomes %2B in both, so a + in encoded output always stands for a space.
- Non-ASCII text is first converted to UTF-8 bytes and each byte is written as %XX: a Chinese character is 3 bytes (9 characters of output), an emoji 4 bytes (12 characters), é 2 bytes. Hex digits are always uppercase.
- There is no encodeURI-style mode that keeps a URL’s structure. A whole URL in component mode becomes https%3A%2F%2Fexample.com%2Fa%3Fb%3D1, which is right for passing a URL as a parameter value (redirect=…) but cannot be opened. To change one parameter of a URL, use “URL and query editor”.
“Decode once” and the error rows
“Decode once” removes exactly one layer of encoding and never decodes the result again. Input that cannot be decoded is marked instead of guessed at. Actual results:
| Input | URI component (+ stays a plus) | Form query (+ means space) | Why |
|---|---|---|---|
| a+b%20c | “a+b c” | “a b c” | Only form mode reads + as a space |
| %E4%BD%A0 | “你” | “你” | The UTF-8 encoding of 你 |
| %e4%bd%a0 | “你” | “你” | Lowercase hex is accepted too |
| %2541 | “%41” | “%41” | Double-encoded: one pass gives %41, press again for A |
| %C4%E3 | [Line 1: invalid encoding] | [Line 1: invalid encoding] | The GBK bytes for 你 are not valid UTF-8, so both modes fail |
| %E4%BD | [Line 1: invalid encoding] | [Line 1: invalid encoding] | Truncated UTF-8 sequence |
| 100% | [Line 1: invalid encoding] | [Line 1: invalid encoding] | A % not followed by two hex digits |
| %FF | [Line 1: invalid encoding] | [Line 1: invalid encoding] | A lone FF byte is not UTF-8 |
- With “Process each line separately” ticked every line is decoded on its own and one bad line does not stop the others. The four lines “tag%3Dfree”, “%ZZ”, “”, “%E4%BD%A0%E5%A5%BD” give tag=free ↵ [Line 2: invalid encoding] ↵ ↵ 你好; the status reads “4 items · 1 errors” and the tool warns “The output contains error markers. Correct those input lines and retry.” Empty lines stay empty.
- URLs copied from older systems that percent-encode GBK, Shift_JIS or Latin-1 bytes fail here, because decoding is UTF-8 only. Without batch mode the whole input counts as line 1.
- Decoding does not keep %2F, %3F or %26 encoded: the resulting /, ? and & come out like any other character. If the decoded text goes back into a URL, encode it again.
How the query editor reads and rebuilds a URL
On “URL and query editor” the “Example” button loads https://example.com/search?tag=tools&tag=free&q=hello+world&empty=&flag#results. “Parse parameters” splits the raw query string at each & and at the first = of each part. Duplicate keys, empty values and parameters without = are all kept, in order:
| # | Key | Value (URI component (+ stays a plus)) | Value (Form query (+ means space)) | = |
|---|---|---|---|---|
| 1 | tag | “tools” | “tools” | yes |
| 2 | tag | “free” | “free” | yes |
| 3 | q | “hello+world” | “hello world” | yes |
| 4 | empty | “” | “” | yes |
| 5 | flag | “” | “” | no |
Pressing “Build URL” without editing anything can still change the URL, for two reasons: the encoding mode decides what + means, and the scheme, host and path go through the browser’s URL parser, which normalizes them. Actual results:
| Input | Encoding mode | “Build URL” result | What happened |
|---|---|---|---|
| https://example.com/search?tag=tools&tag=free&q=hello+world&empty=&flag#results | URI component (+ stays a plus) | https://example.com/search?tag=tools&tag=free&q=hello%2Bworld&empty=&flag#results | The + in q=hello+world is read as a plus and rebuilt as %2B, so the server would now receive “hello+world” instead of “hello world” |
| https://example.com/search?tag=tools&tag=free&q=hello+world&empty=&flag#results | Form query (+ means space) | https://example.com/search?tag=tools&tag=free&q=hello+world&empty=&flag#results | In form mode + is a space and is rebuilt as +, matching the original |
| https://example.com/?a=1&&b=2&=v | URI component (+ stays a plus) | https://example.com/?a=1&&b=2&=v | The empty part && and the keyless =v are kept |
| https://example.com/?a=b=c | URI component (+ stays a plus) | https://example.com/?a=b%3Dc | A second = inside the value becomes %3D |
| https://example.com/?q=%41%2f | URI component (+ stays a plus) | https://example.com/?q=A%2F | %41 is decoded to A; lowercase %2f becomes uppercase %2F |
| http://example.com:80/?a=%20+ | Form query (+ means space) | http://example.com/?a=++ | %20 and + are both spaces and are both written as + |
| https://EXAMPLE.com:443/./x/../y?z=1#frag?q | URI component (+ stays a plus) | https://example.com/y?z=1#frag?q | Host lowercased, default port 443 dropped, ./ and ../ resolved; the ?q after # belongs to the fragment, not the query |
| https://例子.中国/路径?q=北京 | URI component (+ stays a plus) | https://xn--fsqu00a.xn--fiqs8s/%E8%B7%AF%E5%BE%84?q=%E5%8C%97%E4%BA%AC | The Chinese domain becomes Punycode; the path and value are UTF-8 percent-encoded |
| https://example.com/? | URI component (+ stays a plus) | https://example.com/ | A trailing lone ? is dropped |
- Editing rules: once you type a value, that row always gets an = (the “=” box is greyed out), and clearing the value keeps the =. Clearing id in ?flag&id=7 gives https://example.com/?flag&id=; unchanged it is https://example.com/?flag&id=7.
- A row added with “Add parameter” and left without key or value is skipped when the URL is built, so no trailing &= appears: https://example.com/?flag&id=7.
- The “Fragment” (everything after #) is kept as written, neither decoded nor re-encoded. A URL with a user name or password shows “This URL contains credentials. Generated and copied URLs retain them; take care when sharing.”
- Signed links (temporary storage links, payment callbacks) are usually signed over the exact query text; turning %2f into %2F or + into %2B can invalidate the signature. Use the editor to read such links, not to replace them.
Limits and every error message
The text limit counts UTF-8 bytes: 1 MB holds 1,048,576 ASCII characters, 349,525 Chinese characters or 262,144 emoji. Imported files have the same 1 MB limit. These are all the messages the tool can show, with their causes:
| Message | Cause and fix |
|---|---|
| Enter a full https:// or http:// URL. Encode spaces first. | The URL does not start with http:// or https://, or it contains a space, tab, line break or other control character. “example.com/?q=1” and ftp:// addresses are both refused; write spaces as %20 first |
| Query parameters contain invalid percent escapes or non-UTF-8 bytes. Correct them first. | A key or value has an incomplete %XX or decodes to bytes that are not UTF-8. The whole URL is refused, not just one parameter |
| The output contains error markers. Correct those input lines and retry. | At least one batch line failed; its place in the output holds a marker such as “[Line 2: invalid encoding]” |
| Text is limited to 1 MB; a full URL to 65,536 characters. | Batch text over 1,048,576 bytes, or a URL (including a rebuilt one) over 65,536 characters |
| Up to 2,000 batch lines. | More than 2,000 lines in batch mode; split the job |
| Up to 500 parameters per URL. | The query string splits into more than 500 parts at &; empty parts count |
The tool only parses the text and never visits the URL. Presets store the encoding mode and the batch switch, never URLs or text.
Sources
Frequently asked questions
Why did a plus sign become a space?
Form mode treats + as a space; URI component mode does not. Choose the mode that matches where the URL came from.
Does it visit my URLs?
No. Everything is parsed locally without sending requests.
Can I edit signed URLs?
It is not recommended. Rebuilding normalizes encoding and may break signatures.
Suggest an improvement to this tool
Missing an option, something awkward to use, or a wrong result? Let us know.