URL Encoder Decoder Tool - Encode & Decode URLs Online, No Install (2026)
You received URL that looks like this: https://example.com/search?q=coffee%20%26%20donuts. Or you need to pass callback URL as parameter, but it contains slashes + ampersands that break outer query string. This step-by-step guide shows you exactly how to encode or decode any URL in browser — without installing any software, without uploading anything, + without exposing sensitive query parameters to third-party server.

Table of Contents
Why you need to encode or decode URL
URLs can only safely carry limited character set. Characters like spaces, ampersands (&), equal signs (=), slashes (/), question marks (?), + hash signs (#) have specific structural meanings. When they appear inside parameter value, they break URL parser's ability to understand where one part ends + next begins.
Encoding needed when you building URL: constructing search query with user input, passing redirect URL as parameter, building API request where parameter values contain special characters, or forming link where displayed text becomes URL component.
Decoding needed when you reading URL: making sense of percent-encoded link someone sent you, debugging 400 Bad Request to understand what server actually received, extracting value of URL parameter that contains encoded characters, or reading log files that contain raw URL-encoded request paths.
Both operations require no software installation. Every modern browser includes JavaScript's native encodeURIComponent + decodeURIComponent functions, + omnikitbolt URL Encode / Decode tool exposes those functions through simple interface — paste, click, copy.
How to encode URL parameter: step by step
Most common encoding task: you have piece of data (search term, user name, file path, redirect URL) + you need to embed it safely inside URL as query parameter value. Here exact process.
- Open omnikitbolt.com/tools/url-encode-decode. No install, no account. Works in any browser.
- Paste raw value. Paste only parameter value — not full URL, not key name, just value. For example, if you want to pass search term "coffee & donuts", paste that string. If you want to pass redirect URL like
https://app.com/profile?id=42&tab=settings, paste full redirect URL. - Click Encode. Tool applies
encodeURIComponent. Every character except letters, digits, hyphen, underscore, period, + tilde converted to its%XXform. - Copy encoded result. Output
coffee%20%26%20donutsfor search term, orhttps%3A%2F%2Fapp.com%2Fprofile%3Fid%3D42%26tab%3Dsettingsfor redirect URL. - Append it to URL. Use it as value in query string:
https://api.example.com/search?q=coffee%20%26%20donuts, or for redirect:https://auth.example.com/login?next=https%3A%2F%2Fapp.com%2Fprofile%3Fid%3D42%26tab%3Dsettings.
Critical rule: encode value only, not entire URL. Encoding full URL with encodeURIComponent would encode :// + ? that separate scheme from host + path from query — destroying URL's structure. Only encode pieces of data you embedding as values.
How to decode percent-encoded URL: step by step
You received URL like https://example.com/search?q=caf%C3%A9%20au%20lait%20%26%20croissant&lang=fr + want to read it in plain text. Or you reading server logs + trying to understand what values arrived in request. Decode process reverse of encoding.
- Open omnikitbolt.com/tools/url-encode-decode.
- Paste percent-encoded string. You can paste full URL or just encoded parameter value. For full URL, decode to see query string in readable form. For specific value, paste just value portion.
- Click Decode. Tool applies
decodeURIComponent. Every%XXsequence replaced with corresponding UTF-8 character.%20→ space,%26→ &,%C3%A9→ é. - Read or copy result. Decoded output for example above:
https://example.com/search?q=café au lait & croissant&lang=fr. Now you can read what original search query was.
If input contains malformed sequence (incomplete or invalid %XX code), tool displays error message rather than crashing silently. This helps you identify exact problematic character in poorly formed URL.
Encode or decode any URL — runs instantly in browser
Native encodeURIComponent / decodeURIComponent. No install, no server, no upload. Free.
Open URL Encoder / Decoder, FreeEncoding component vs encoding full URL
Most important conceptual distinction in URL encoding whether you encoding piece of data (component) or URL itself. This determines which encoding function applies.
| What you encoding | Correct function | Example | Why |
|---|---|---|---|
| Query parameter value | encodeURIComponent | coffee & donuts → coffee%20%26%20donuts | Must encode & + = so they not mistaken for URL structure |
| Path segment with special chars | encodeURIComponent | my folder/file → my%20folder%2Ffile | / must not create spurious path segments |
| Redirect URL as parameter | encodeURIComponent | https://x.com/?a=1 → https%3A%2F%2Fx.com%2F%3Fa%3D1 | Entire URL data value — all structural chars must be encoded |
| Full URL with non-ASCII chars | encodeURI | https://x.com/café → https://x.com/caf%C3%A9 | Encodes non-ASCII but preserves : // / ? & = so URL stays valid |
Omnikitbolt URL Encode / Decode tool uses encodeURIComponent for encoding, making it correct tool for encoding data values. For encoding full URL to make it safe to paste in browser, browser itself will handle it — type or paste URL with spaces directly + browser encodes it automatically. You rarely need encodeURI in practice.
Common errors + how to fix them
URL encoding errors often silent — they do not always throw error. Instead, request succeeds but returns wrong data, or link redirects to wrong page. Here patterns that cause most debugging time.
| Error | Symptom | Fix |
|---|---|---|
| Double encoding | %20 becomes %2520 in final URL. Server receives wrong value. | Encode each raw value exactly once. Decode first if input may already be encoded. |
| Using encodeURI on parameter values | & + = not encoded. Query string splits incorrectly at unencoded &. | Always use encodeURIComponent for parameter values. |
| Unencoded # in value | Everything after # treated as fragment, not sent to server. | Encode # as %23 in any parameter value containing hash sign. |
| Malformed percent sequence | decodeURIComponent throws URIError. Request fails or returns 400. | Check for truncated copy-paste. Paste into decode tool to see error position. |
| + decoded as literal plus sign | Search query shows "hello+world" instead of "hello world". | Replace + with %20 before decoding, or use form-specific decoder if input form-encoded. |
| Encoding full URL instead of value | URL becomes one giant encoded string — browser cannot parse it. | Only encode data values you embed in URL, not URL structure itself. |
Debug broken URL — decode + check what arrived
Paste raw or encoded URL + decode it to see what server actually received. Catches double encoding, malformed sequences, + misused + signs.
Practical examples: API params, redirects, spaces + & characters
Here scenarios that come up most often in real development, with before + after examples showing exactly what encoding produces.
Example 1 — Search query with space + ampersand. User types "coffee & donuts" into search box. You need to pass it as q parameter:
Input: coffee & donuts Encoded: coffee%20%26%20donuts Full URL: https://api.example.com/search?q=coffee%20%26%20donuts
Without encoding, raw & would be interpreted as query parameter separator, + server would receive q=coffee + second unnamed parameter donuts — silently wrong result.
Example 2 — Redirect URL as parameter. After login, redirect user to original destination. Destination URL passed as parameter:
Input: https://app.com/dashboard?tab=settings&plan=pro Encoded: https%3A%2F%2Fapp.com%2Fdashboard%3Ftab%3Dsettings%26plan%3Dpro Full URL: https://auth.example.com/login?next=https%3A%2F%2Fapp.com%2Fdashboard%3Ftab%3Dsettings%26plan%3Dpro
Example 3 — Decoding URL received from third-party system. You receive webhook URL from payment provider:
Received: https://myapp.com/webhook?event=payment.success&amount=29.99%20EUR&customer=Marie%20Curie Decoded: https://myapp.com/webhook?event=payment.success&amount=29.99 EUR&customer=Marie Curie
Example 4 — Non-ASCII characters (Unicode). French product name containing accented characters:
Input: café au lait Encoded: caf%C3%A9%20au%20lait Full URL: https://shop.example.com/search?name=caf%C3%A9%20au%20lait
é character encodes as %C3%A9 — its UTF-8 byte sequence (0xC3 0xA9) expressed as two percent-encoded bytes. Any Unicode character, including Chinese, Arabic, emoji, + diacritics, encodes same way.
Why no-upload matters for URL encoding
URL encoding might seem like trivial operation — it just character substitution. But strings you encode or decode frequently contain sensitive data. Consider what commonly appears in URLs:
- Authentication tokens. OAuth tokens, JWT tokens, + session IDs often appear as query parameters in callback URLs. Pasting these into online tool that sends them to server exposes them.
- API keys. Developers sometimes embed API keys directly in URLs for quick testing. Encode/decode tool that logs inputs would capture these keys.
- Internal endpoint paths. URLs pointing to internal services, admin panels, or staging environments reveal infrastructure when logged by third-party tool.
- User-submitted data. If you decode URL containing user email addresses, names, or personal identifiers, exposing those to server violates data minimization principle of GDPR + similar regulations.
Omnikitbolt URL Encode / Decode tool makes no network requests during encoding or decoding. Computation happens entirely in browser tab using native JavaScript functions. Open browser DevTools (F12), go to Network tab, filter by XHR or All, + paste or type any string — you will see no outgoing requests carrying input. Only requests page makes for its own assets (CSS, fonts, JS bundle) on page load.
Developer tools that run in browser — no upload, no server
URL encoding, hash generation, QR codes, Base64 encoding — all client-side.
Related tools
- URL Encode / Decode: tool covered in this article. Native encodeURIComponent / decodeURIComponent. No upload, no server. See also: percent-encoding reference guide.
- Hash Generator: generate MD5, SHA-1, SHA-256, SHA-384, or SHA-512 hashes from text or files. Useful for checksums, file integrity, + verifying downloads. See hash generator guide.
- QR Code Generator: generate QR codes from any URL, text, Wi-Fi, email, or vCard. No signup, no expiry, download PNG or SVG. See QR code generator guide.
- Image to Base64: encode any image to Base64 data URI for embedding in HTML, CSS, or API payloads. No upload, no server. See Image to Base64 guide.
FAQ
How do I encode URL with spaces + special characters?
Paste string containing spaces + special characters into URL Encode / Decode tool at omnikitbolt.com/tools/url-encode-decode + click Encode. Tool applies encodeURIComponent, which converts spaces to %20, ampersands to %26, equal signs to %3D, slashes to %2F, + all other non-unreserved characters to their %XX form. Result safe to embed in any URL component. Example: 'coffee & donuts' becomes 'coffee%20%26%20donuts'.
How do I decode URL that has %20, %26, + other percent codes?
Paste percent-encoded string into input field + click Decode. Tool applies decodeURIComponent, which reverses encoding: %20 becomes space, %26 becomes &, %3F becomes ?, %2F becomes /, + so on. If input malformed (incomplete % sequence or invalid byte), tool catches error + reports it rather than crashing silently. Decoded output original human-readable string.
What difference between encoding URL component + encoding full URL?
Encoding component (single parameter value, path segment, or any piece of data embedded in URL) uses encodeURIComponent, which encodes all characters except letters, digits, + - _ . ! ~ * ' ( ). This correct approach for parameter values. Encoding full URL uses encodeURI, which preserves structural characters of URL — : / ? # [ ] @ & = + $ ; , — so URL remains parseable. Critical difference: encodeURI does NOT encode & + =, so it wrong for parameter values. encodeURIComponent DOES encode them, which would break full URL structure. Use encodeURIComponent for values; use encodeURI (rarely) for complete URL you need to make safe without breaking.
What happens if I try to decode malformed percent-encoded string?
Malformed percent-encoded string one where % not followed by exactly two valid hexadecimal digits. For example: %2G (G not hex), %2 (incomplete), or bare % at end of string. JavaScript decodeURIComponent throws URIError for malformed input rather than silently returning wrong result. Omnikitbolt URL Encode / Decode tool catches that error + displays clear message so you can identify invalid sequence. Common causes: copy-paste errors that truncated encoded string, manual editing that broke % sequence, or receiving URL that only partially encoded by broken system.
Does this tool work without internet? Can I use it offline?
Yes, once page loaded, URL Encode / Decode tool works without active internet connection. Encoding + decoding logic runs in JavaScript natively in browser — it makes no network requests. If you load page once + then disconnect from Wi-Fi, tool continues to work. This also why tool suitable for sensitive data: credentials, API keys, or internal endpoints embedded in URLs never leave device, regardless of network status.
How do I encode redirect URL to use as parameter?
Redirect URL itself complete URL — it contains slashes, question marks, ampersands, + other characters that would corrupt outer URL if left unencoded. Correct approach: paste full redirect URL into encode field + click Encode. Entire URL treated as value + all its structural characters encoded. Example: 'https://app.com/dashboard?tab=settings&mode=edit' becomes 'https%3A%2F%2Fapp.com%2Fdashboard%3Ftab%3Dsettings%26mode%3Dedit'. You then append that encoded string as parameter value: 'https://auth.example.com/login?redirect=https%3A%2F%2Fapp.com%2Fdashboard%3Ftab%3Dsettings%26mode%3Dedit'.
Why does decoded URL look different from what I expect?
If decoded URL looks unexpected, most common reasons: 1) Input double-encoded — string that already percent-encoded encoded again, so %20 became %2520. Decode it twice: once to get %20, then again to get original space. 2) Encoding used + for spaces (HTML form encoding) rather than %20. Tool decodeURIComponent treats + as literal plus sign, not space — to decode + as spaces you need to replace + with %20 first. 3) Input truncated — copy-paste operation cut off part of string, leaving incomplete % sequences. Check that you copied entire encoded string.
Is this URL encoder + decoder tool private?
Yes. Omnikitbolt URL Encode / Decode tool runs entirely in browser using JavaScript built-in encodeURIComponent + decodeURIComponent functions. Nothing you type or paste sent to any server. No analytics events capture content of input. You can verify this with browser DevTools: open Network tab, type or paste string, + click Encode or Decode — you will see no outgoing requests containing data. This matters because URLs frequently carry sensitive information: authentication tokens, session IDs, API keys, internal endpoint paths, + personal search queries.