URL Encode / Decode
URL Encoder & Decoder
Encode, decode, and format URLs in seconds.
Choose how special characters are handled.
Encodes a single URL part, such as a search term or query parameter value.
All processing happens locally in your browser.
How to use
URL Component: Encode text for a URL query value or path segment. Example: coffee & tea becomes coffee%20%26%20tea.
Full URL: Preserve URL delimiters such as :/?&=# while encoding unsafe characters. Use this on an unencoded full URL; during decoding, reserved percent escapes may remain encoded to protect URL structure.
Form Data: For application/x-www-form-urlencoded text. Spaces are encoded as +, while literal plus signs become %2B.
Decode: Decode percent escapes. Invalid sequences display an error instead of silently changing your text. Auto convert repeats your last chosen operation as you type.
Need to make a URL readable, encode a search query, or fix a link containing special characters? The free URL Encode / Decode tool above converts text and web addresses into the correct percent-encoded format and reverses that conversion when needed. You can choose between URL Component, Full URL, and Form Data modes, depending on where your text will be used.
These distinctions matter. Encoding an entire web address is not the same as encoding a search parameter, and choosing the wrong method can change how a browser or server interprets your link. This guide explains how to use the converter, understand the results, handle Unicode characters, and avoid common encoding mistakes.
What Is URL Encoding and Decoding?
URL encoding, also called percent-encoding, represents certain characters using a percent sign followed by two hexadecimal digits. It allows text to be placed within a URL without confusing ordinary data with characters that have special structural meanings.
For example, consider the text coffee & tea. If you want to use it as one search parameter value, the ampersand must be encoded because it is commonly used to separate parameters in a query string.
Using URL Component mode, the result is coffee%20%26%20tea. Here, %20 represents a space and %26 represents an ampersand.
URL decoding reverses this operation. It reads valid percent-encoded bytes and reconstructs the corresponding text.
The underlying rules are described in 🔗 RFC 3986, the Internet standard for URI syntax. A crucial detail is that reserved characters need encoding when they would otherwise be mistaken for URL delimiters—not necessarily every time they appear.
How to Use the Free URL Encoder and Decoder
The converter is designed for quick, browser-based operations. You do not need to install software, create an account, or upload a file to use its text conversion features.
Step 1: Choose an Encoding Format
At the top of the tool, you will find three options: URL Component, Full URL, and Form Data.
URL Component is selected by default. It is generally the appropriate choice when you are working with an individual query parameter value, a search phrase, or a single URL path segment.
Select Full URL when you want to preserve the structure of a complete, previously unencoded address. Select Form Data when you are working with values encoded according to the application/x-www-form-urlencoded convention.
Step 2: Enter Your Text or URL
Paste or type the content into the Input text or URL area. The Paste button can read your clipboard when your browser permits it. If clipboard access is unavailable or denied, you can paste manually using your keyboard.
You can also select Example to load a sample appropriate to the currently selected mode. This is a convenient way to understand how different characters are handled before converting your own content.
Below the input area, the converter displays character and byte counts. These measurements are particularly useful when dealing with non-English text, emoji, or strings that may expand after encoding.
Step 3: Encode or Decode
Select Encode to transform your text according to the chosen format. Select Decode to reverse supported percent-encoded sequences.
The result appears in a separate, read-only output area, allowing you to compare the original and converted versions without overwriting your input.
For faster keyboard operation, press Ctrl + Enter on Windows or Linux, or Command + Enter on macOS, while working in the input field to encode. Adding Shift to the same shortcut performs decoding.
Step 4: Enable Auto Convert When Needed
The optional Auto convert switch repeats your most recently selected operation as you modify the input. For example, if you last selected Decode, subsequent typing or pasting will trigger decoding while the switch remains enabled.
If Auto convert is disabled, you control the operation by selecting Encode or Decode. Changing the input also clears an outdated result so that you do not accidentally copy a conversion of earlier text.
Step 5: Copy, Reuse, or Download the Result
After a successful conversion, you can:
- Select Copy to transfer the result to your clipboard.
- Select Use result to move the converted text into the input area for another operation.
- Select Download to save the result as a UTF-8 text file.
- Select Clear to remove the current content and start again.
Use result does not immediately repeat the conversion. This helps prevent accidental double encoding when you want to inspect or modify the previous output before proceeding.
URL Component vs. Full URL vs. Form Data: Which Should You Choose?
This is the most important decision when using a URL encoder. All three modes transform text, but they do not apply identical escaping rules.
| Mode | Best for | Spaces | Reserved delimiters |
|---|---|---|---|
| URL Component | Query values, individual path segments, ordinary text | %20 |
Encodes characters such as &, =, /, and ? |
| Full URL | Complete, unencoded URI strings | %20 |
Preserves important URL delimiters |
| Form Data | HTML-style form field values and form-encoded queries | + |
Encodes separators inside a field value |
1. URL Component: For Individual Values
URL Component mode uses the browser’s encodeURIComponent() behavior. It escapes characters that might otherwise interfere with URL structure, including ampersands, equal signs, question marks, colons, and slashes.
For example, the input A+B & C/D becomes:
A%2BB%20%26%20C%2FD
This makes the result suitable for use as a single query value without accidentally introducing extra separators. You can read the precise character rules in 🔗 MDN’s encodeURIComponent documentation.
2. Full URL: For Preserving Address Structure
Full URL mode uses encodeURI(). Unlike component encoding, it deliberately leaves characters such as :, /, ?, #, and & unescaped because they can define parts of the URL itself.
For example, a complete address containing a space:
https://example.com/search?q=blue shoes
becomes:
https://example.com/search?q=blue%20shoes
However, Full URL mode cannot determine whether a raw ampersand represents a parameter separator or belongs inside the parameter’s value. That limitation has practical consequences.
3. Form Data: When Spaces Need Plus Signs
Form Data mode follows the application/x-www-form-urlencoded convention. It uses + for a space and %2B for an actual plus sign.
For example, encoding coffee & tea + biscuits produces:
coffee+%26+tea+%2B+biscuits
This mode uses form-style serialization equivalent to the browser’s URLSearchParams rules. Those rules are explained in the 🔗 MDN URLSearchParams reference.
One additional distinction: Form Data mode applies a different encoding set from URL Component mode. For example, a tilde (~) can remain unescaped in component mode but becomes %7E in form serialization. You should therefore choose the intended format rather than manually replacing every %20 with a plus sign and assuming the results are always identical.
Why Encoding a Full URL Can Still Break a Query
Suppose you want a search parameter to contain the phrase coffee & tea. A developer might build the complete link first and then run it through Full URL mode, expecting every unsafe character to be corrected.
That approach does not work reliably because encodeURI() preserves the ampersand. The ampersand may then be interpreted as the beginning of another query parameter rather than part of the search phrase.
%26, allowing the phrase to remain one parameter value.The practical rule is simple: encode each dynamic query value before joining it to the surrounding URL. Alternatively, developers can use the browser’s URL and URLSearchParams APIs to construct query parameters without manually combining delimiters.
This is more reliable than trying to repair a completed URL after unescaped data has already been mixed with its structural characters.
Common URL Encoding Examples and Special Characters
Not every character is treated the same way. Ordinary ASCII letters and digits typically remain readable, while spaces, reserved punctuation, and non-ASCII characters may require percent-encoding.
The following examples show the output of URL Component mode.
| Original | Encoded | Explanation |
|---|---|---|
| Space | %20 |
ASCII space byte |
& |
%26 |
Common query parameter separator |
+ |
%2B |
Literal plus sign |
/ |
%2F |
Path delimiter used as data |
? |
%3F |
Query delimiter used as data |
% |
%25 |
Literal percent sign |
é |
%C3%A9 |
Two UTF-8 bytes |
☕ |
%E2%98%95 |
Three UTF-8 bytes |
How URL Encoding Handles Unicode and Emoji
URL encoding is not limited to English text. It can represent accented letters, Arabic, Chinese, emoji, and other Unicode characters by encoding their UTF-8 byte sequences.
Consider the word café. The final character, é, uses two bytes in UTF-8, so component encoding produces caf%C3%A9.
The coffee symbol ☕ uses three UTF-8 bytes and becomes %E2%98%95. Other Unicode characters may require different numbers of bytes.
This explains why an encoded URL can be significantly longer than the original text. One visible symbol does not necessarily correspond to one byte, and every percent-encoded byte is represented by three ASCII characters.
The converter’s character and byte counters help you observe the difference. However, a character count is not the same as a count of what a person perceives as individual visual symbols, especially when emoji modifiers or combining marks are involved.
Another practical consideration is character encoding compatibility. The tool uses UTF-8 behavior; it is not a general-purpose decoder for arbitrary legacy character sets. If a system originally encoded text using a different character encoding, UTF-8 decoding may fail or produce an unexpected result.
Why %20 and + Both Represent Spaces in Different Situations
The difference between %20 and + is a frequent source of confusion.
In standard percent-encoding, a space is represented by %20. In the application/x-www-form-urlencoded format, spaces are serialized as plus signs instead.
For example, the phrase blue shoes becomes blue%20shoes in URL Component mode and blue+shoes in Form Data mode.
A literal plus sign creates an important exception. If the original text is A+B, Form Data mode encodes it as A%2BB. Otherwise, a form decoder may interpret the plus sign as a space and return A B, changing the original information.
The same distinction applies during decoding. URL Component mode leaves an ordinary, unescaped plus sign unchanged, while Form Data mode interprets it as a space.
When troubleshooting query strings, always identify how the receiving application parses its parameters. Do not assume that every plus sign in every part of a URL represents whitespace.
How to Fix URL Decoding Errors
An encoded string must follow valid syntax, and its percent-encoded bytes must form valid UTF-8 when decoded by this tool. When either condition fails, the converter displays an error rather than silently changing malformed text.
1. Invalid Percent Escape
An escape begins with % and requires exactly two hexadecimal digits. Valid examples include %20, %2F, and %C3.
A sequence such as %ZZ is invalid because Z is not a hexadecimal digit. A trailing percent sign, or an escape missing one of its digits, is also malformed.
The converter reports the position of a malformed percent escape when it can identify that specific problem. Examine the original source before deciding how to correct the text.
2. Incomplete or Invalid UTF-8
Even a sequence containing correctly formed hexadecimal escapes can be invalid when the bytes do not form a complete UTF-8 character.
For example, %C3 represents a leading byte that requires a continuation byte. It cannot be decoded into a complete UTF-8 character on its own.
The converter displays a decoding error for such input. This is preferable to pretending that an incomplete sequence has a definite meaning.
3. Double-Encoding Problems
Double encoding occurs when an already encoded value is encoded again.
For example, a space encoded as %20 becomes %2520 if the encoded text is passed through component encoding a second time. The new %25 represents the original percent sign.
If you decode %2520 once, the result is %20. A second decoding operation would turn that into a space.
When investigating suspected double encoding, use Use result and Decode again only after checking that another decoding layer is actually intended. The converter does not automatically detect every double-encoded value or recursively decode until no escapes remain.
4. Reserved Characters Remain Encoded
You may notice that Full URL decoding leaves sequences such as %26 or %2F unchanged.
This behavior is intentional. The browser’s decodeURI() operation preserves percent-encoded representations of certain reserved characters because converting them into literal delimiters could change URL structure.
If you need to decode an individual parameter value completely, select URL Component instead. See 🔗 MDN’s decodeURI documentation for the reserved-character behavior.
Practical Uses for URL Encoding and Decoding
1. Building Search URLs
When an application includes user-entered text in a search URL, characters such as spaces, ampersands, and question marks can affect how the destination interprets the request.
Component encoding preserves the input as one parameter value. This is useful for search interfaces, product filters, and applications that construct links from dynamic data.
2. Debugging API Requests
Developers often inspect URLs while troubleshooting HTTP requests. Decoding individual query values can help reveal unintended spaces, extra encoding layers, or incorrect handling of reserved characters.
Remember that URL decoding only makes the string readable. It does not validate an API request, inspect a server response, authenticate credentials, or establish whether the receiving application accepts the parameter.
3. Working With Form Submissions
Form-style encoding matters when applications serialize fields using application/x-www-form-urlencoded. A small difference in how spaces and literal plus signs are handled can alter values that reach the server.
Form Data mode provides an appropriate representation for an individual form value. The converter is not a complete form submission builder: it does not automatically assemble multiple fields, send HTTP requests, or inspect submitted form bodies.
4. Preparing Links for QR Codes
Correct URL construction also matters before placing a web address into a QR code. If the destination contains user-generated query parameters, encode those values correctly before creating the final link.
After validating the destination in your browser, you can use the 🔗 QR Code Generator to create a scannable version. URL encoding does not independently confirm that a destination exists or that it is safe to visit.
5. Investigating Redirect Parameters
A redirect URL may itself appear inside another URL’s query parameter. In that case, the inner URL is data belonging to the outer URL and must be encoded as the receiving system expects.
For example, a redirect parameter containing https://example.com/page?ref=summer cannot simply be concatenated into another query string without considering its question mark and equal sign.
Developers should additionally validate redirect destinations against an approved policy. Encoding a redirect value does not make an untrusted destination safe.
Is It Safe to Encode and Decode URLs Online?
The provided Noxoric URL converter performs its encoding and decoding operations locally using browser JavaScript APIs. Its conversion code does not require sending the entered text to a remote conversion service.
That is an important privacy distinction from utilities that process pasted content on a server. Nevertheless, local processing should not be interpreted as an unconditional security guarantee about everything else on a webpage or in a browser environment.
A browser extension, unrelated webpage script, compromised device, or someone with access to your screen or clipboard may introduce separate risks. Avoid pasting active session tokens, authorization codes, passwords, or other highly sensitive credentials into online pages unless you have evaluated the entire environment.
Also, URL encoding is not encryption. Anyone who receives an encoded URL can generally decode its readable content. Percent-encoding does not hide secrets, establish confidentiality, or prevent someone from opening a link.
Nor is it a complete defense against cross-site scripting or other injection attacks. Security controls must match the destination context, and applications still need appropriate validation, output encoding, and safe handling of untrusted input. The 🔗 OWASP Cross Site Scripting Prevention Cheat Sheet explains why different contexts require different protections.
Advantages and Limitations of This URL Converter
Understanding what the tool does well—and where its responsibilities end—helps you choose it for the right tasks.
✅ Advantages
- Three encoding formats: Work with individual URL values, complete URI strings, and form-style values using separate rules.
- Browser-based processing: Convert text locally without a server-side upload requirement for the conversion.
- UTF-8 support: Encode and decode ordinary Unicode text, including accented characters and emoji.
- Explicit error reporting: Receive feedback when malformed percent escapes or invalid UTF-8 prevent decoding.
- Convenient output controls: Copy, download, clear, or reuse converted text.
- Optional automatic conversion: Repeat the last selected operation while editing your input.
❌ Limitations to Know
- No automatic URL validation: The converter does not confirm that an address is correctly structured, reachable, or trustworthy.
- No query parameter editor: It does not split a complete URL into editable parameter rows.
- No automatic recursive decoding: Multiple encoding layers must be examined deliberately.
- No arbitrary character-set selection: The conversion modes use UTF-8-oriented browser behavior.
- No binary file processing: Its Download feature saves the resulting text; it is not a general binary upload and conversion utility.
- No security verification: Encoded content is not automatically sanitized, encrypted, or assessed for malicious destinations.
For the tasks the tool is designed to perform, its focused interface avoids unnecessary complexity. For advanced URL inspection, automated request construction, or large-scale processing, use dedicated development tools or the appropriate programming APIs.
Final Tips for Accurate URL Encoding
The most reliable URL encoding workflow begins with one question: Where will the encoded text be used?
Choose URL Component for a search value or individual URL segment, Full URL for a complete URI whose structural delimiters must remain intact, and Form Data when the receiving system expects form-style encoding.
Review reserved characters carefully, especially ampersands, equal signs, question marks, and plus signs. If decoding fails, inspect the percent escapes and UTF-8 sequences instead of forcing the operation. If a string has already been encoded, avoid encoding it again without a specific reason.
Most importantly, remember that a syntactically encoded URL is not necessarily a valid, working, or secure URL. The final destination still requires the appropriate application-level checks.
🚀 Use the URL Encoder & Decoder above for your next conversion, then visit Noxoric to explore additional practical digital utilities. You can also browse the 🔗 Free Developer Tools collection for related encoding, formatting, and data-conversion tools.