🔗 URL Encoder & Decoder
Turn any text or link into a safe, shareable URL — or decode a messy %-filled link back into plain, readable text.
Free URL Encoder & Decoder — Make Any Link Safe to Share
You paste a link into an email, a chat message, or a spreadsheet — and it breaks. A space in the address, an ampersand in a search term, a question mark where it does not belong, and suddenly the link points nowhere. That is exactly what a url encoder fixes. It takes any text and converts the characters that are not allowed in a web address into safe percent-encoded codes, so the link survives every inbox, chat app, and document it passes through.
This free url encoder decoder works in both directions. Encode a messy address into a clean, shareable link, or decode a link full of %20 and %26 back into plain text you can actually read. It runs entirely in your browser — nothing you type is uploaded, stored, or sent to a server — and it costs nothing, with no signup and no limits on how often you use it.
How to Use This URL Encoder
- Pick a mode. Choose Encode to turn text into a safe URL, or Decode to turn an encoded link back into readable text. The result updates live as you type, so there is no submit button to hunt for.
- Paste your text or link. Drop in a full web address, a search query, a piece of form data, or any plain text. The three example buttons above the result box fill in common cases if you want to see it working first.
- Decide about whole URLs. If you are encoding a complete address such as https://example.com/search?q=coffee & cake, tick "Keep : / ? & = intact" so the structure of the URL stays readable and only the unsafe characters inside it are encoded. If you are encoding a single value — one search term, one form field — leave the box unticked so everything unsafe is encoded.
- Read the result. The encoded or decoded text appears instantly, along with a small breakdown: how many characters went in, how many came out, and how many characters changed. A big jump in length usually means the input had a lot of spaces or special characters.
- Copy or swap. Hit "Copy result" to paste the link wherever you need it. The Swap button flips the result back into the input and switches the mode — the quickest way to double-check that an encoded link decodes back to exactly what you started with.
What Is URL Encoding?
Web addresses were designed for a small set of safe characters: letters, numbers, and a handful of symbols such as - . _ ~. Everything else has to be represented differently, and that is where percent-encoding comes in. Each unsafe character is replaced by a percent sign followed by two hexadecimal digits that stand for the character's code. A space becomes %20, an ampersand becomes %26, a question mark becomes %3F. Browsers and servers understand these codes and translate them back automatically, so the page still loads exactly as intended.
Encoding matters because a raw space or ampersand inside a link is ambiguous. A space can be cut off by an email client, so the link ends mid-word. An ampersand inside a search term can be mistaken for the separator between two different parameters, so the server reads the query wrong. Encoding removes the ambiguity: every character in the address has exactly one meaning, and the link works the same in a browser, an email, a text message, or a printed document.
Modern browsers do some of this quietly for you — type a search with spaces into the address bar and the browser encodes it before sending the request. But the moment you build a link by hand, write a redirect, craft an affiliate URL, or pass data through a form, you are the one responsible for encoding. That is when a dedicated url encoder earns its place in your bookmarks.
Characters You Will See Encoded Most Often
- Space → %20 — the most common one. A search for "coffee and cake" becomes coffee%20and%20cake inside a URL.
- & → %26 — an ampersand starts a new parameter, so one inside a value must be encoded or the value gets split in two.
- ? → %3F — a question mark starts the query string, so one inside a value has to be encoded.
- = → %3D — an equals sign joins a name to its value, so one inside the value itself must be encoded.
- / → %2F — a slash separates path segments, so one inside a single value must be encoded.
- # → %23 — a hash starts a page fragment, so one inside a value must be encoded or the rest of the link is treated as a fragment.
- + → %2B — in query strings a plus can mean a space, so a real plus sign in the data must be encoded.
- @ → %40 and : → %3A — both have special roles in addresses, so they are encoded when they appear inside a value.
- Non-English letters and emoji — characters such as é, ü, or 😀 are encoded as UTF-8 byte sequences, which is why they look so long in an encoded link.
URL Encoder vs URL Decoder — When to Use Each
Use the encoder when you are creating a link or sending data. Building a search URL by hand, adding a tracking parameter to a marketing link, putting a pre-filled message into a share link, or sending form data through a URL — all of these need encoding first. If the link contains a space, a quote, an ampersand, or any character outside plain letters and numbers, encode it before you share it.
Use the decoder when you are reading a link someone else sent you. Long affiliate links, tracking URLs from email newsletters, and links copied out of analytics tools are often fully encoded and impossible to read at a glance. Paste one into the url decoder and the real destination, the search terms, and the tracking parameters become visible in seconds. It is also the fastest way to check whether a link is going where it claims to go — decode it and read the actual address before you click.
Where a URL Encoder Comes in Handy
- Developers building query strings. When your code builds a URL from user input — a search box, a filter, a username — encode each value so a stray & or space never breaks the request. This tool lets you test the exact output before it goes into your code.
- Marketers and affiliates. Tracking links, UTM parameters, and pre-filled share messages all travel inside URLs. Encode them once and they work in every email client, ad platform, and social network without breaking.
- SEO and content work. Slugs, canonical tags, redirects, and internal links all need clean addresses. Encoding a title with special characters before it becomes a slug keeps the link valid and crawlable.
- Sharing links in chat and email. A link with spaces or brackets pasted into a message often gets cut off at the first space, so the recipient clicks a broken half-link. Encode it first and the whole address arrives intact.
- Debugging broken links. When a link returns a 404 or a form submits the wrong value, decoding the URL usually reveals the problem in seconds — a double-encoded %2520, a missing %26, or a value that was never encoded at all.
Tips for Clean, Working Links
- Encode values, not whole URLs. Encode each piece of data separately, then join the pieces with ? & and =. Encoding an entire address turns the slashes and question marks into codes and the link stops working — that is what the "keep intact" checkbox is for.
- Watch out for double encoding. Encoding an already-encoded link turns %20 into %2520, and the server then reads a literal "%20" instead of a space. If a decoded link still looks encoded, decode it once more — but never encode twice.
- Remember that + means space in query strings. In the query part of a URL, a plus sign is read as a space. If your data contains a real plus, encode it as %2B or the server will read it wrong.
- Encode before you shorten. URL shorteners wrap whatever you give them. Feed them a properly encoded link so the short version points at the right destination, not a broken copy.
- Test the round trip. Encode your text, then decode the result. If you get back exactly what you started with, the link is safe to share. The Swap button on this page does the round trip in one click.
Frequently Asked Questions
Is this URL encoder free?
Yes. It is free to use as often as you like, with no signup, no daily limit, and no account. The tool runs in your browser, so there is nothing to install and nothing to pay for.
What is the difference between encodeURI and encodeURIComponent?
encodeURI is for a whole address: it leaves the structural characters : / ? & = and # alone and encodes the rest. encodeURIComponent is for a single value: it encodes everything that is not a plain letter, digit, or one of - _ . ! ~ * ' ( ). Use encodeURIComponent for values and encodeURI for complete URLs — the "Keep : / ? & = intact" checkbox on this page switches between the two.
Why do spaces become %20 in URLs?
Spaces are not allowed in a web address, so they are replaced by their percent-encoded form, %20. Some systems use a plus sign instead, but only inside query strings. In the path part of a URL, %20 is the correct encoding for a space.
Can I decode a URL to see where it really goes?
Yes. Paste the link, choose Decode, and the tool shows the plain address, including any tracking parameters and redirect targets hidden inside the encoded text. It is a quick way to check a suspicious or overly long link before clicking it.
Is my data private when I use this tool?
Yes. The encoding and decoding happen in JavaScript on your own device. Your text is never uploaded, logged, or sent to any server — close the tab and it is gone.
Does it work on my phone?
Yes. The tool runs in any mobile browser. Paste a link from your messaging app, encode or decode it, and copy the result back — no app needed.
Encode Your Next Link in Seconds
A broken link costs a click, a sale, or a reader — and most of the time the cause is a single unencoded character. Paste the text above, let this url encoder do the work, and share links that arrive intact every time. And when the link is sorted, explore our other free online tools — calculators, converters, and generators that all run right in your browser, free forever.
How to use
- Choose Encode to make text URL-safe, or Decode to turn a %-filled link back into readable text.
- Type or paste your text above — the result updates live as you type. Tick "Keep : / ? & = intact" when you are encoding a whole URL instead of a single value.
- Use Swap to flip the result back into the input (handy for double-checking), then Copy result to use it anywhere.
Free URL Encoder & Decoder — Fix Broken Links in Seconds
Every day, millions of links break for one small reason: a character that does not belong in a web address. A space in a search term, an ampersand in a product name, a question mark inside a value — any of these can turn a working link into a dead end. A url encoder solves that problem in seconds. It converts unsafe characters into safe codes that browsers, email apps, and chat programs all understand, so the link you send is the link the other person actually opens.
This free url encoder decoder works both ways. Encode a messy address before you share it, or decode a long, percent-filled link to see where it really goes. There is no signup, no download, and no limit on use. Everything runs in your browser with plain JavaScript, so your text never leaves your device — paste it, convert it, copy the result, and move on.
How to Use This URL Encoder
- Choose Encode or Decode. Pick Encode when you are building a link or preparing data to send. Pick Decode when you have received a link full of percent codes and want to read it in plain language.
- Paste your text or link. Drop in a full web address, a search query, a form value, or any ordinary sentence. The example buttons fill in common cases so you can see the tool working straight away.
- Decide whether to keep URL structure intact. If you are encoding a complete address, tick “Keep : / ? & = intact” so the slashes, question mark, and ampersands that hold the address together stay readable, while only the unsafe characters inside it get encoded. If you are encoding a single value, such as one search term, leave the box unticked so everything unsafe is encoded.
- Read the live result. The result updates as you type. Below it you get a quick breakdown: how many characters went in, how many came out, and how many characters changed. A big jump in length usually means the input had plenty of spaces or special characters.
- Copy or swap. Use “Copy result” to paste the finished link wherever you need it. Use “Swap” to flip the result back into the input and switch modes — the fastest way to check that an encoded link decodes back to exactly what you started with.
What Is URL Encoding, Exactly?
Web addresses were designed around a small set of safe characters: letters, numbers, and a few symbols such as the hyphen, dot, underscore, and tilde. Everything else has to be represented differently, and that is where percent-encoding comes in. Each unsafe character is replaced by a percent sign followed by two hexadecimal digits for that character’s code. A space becomes %20, an ampersand becomes %26, and a question mark becomes %3F. Browsers and servers read these codes and translate them back automatically, so the page still loads as intended.
Encoding matters because a raw space or ampersand inside a link is ambiguous. An email program may cut a link off at the first space, leaving the recipient with half an address. An ampersand inside a search term can be mistaken for the separator between two different parameters, so the server reads the query wrong. Encoding removes that ambiguity: every character in the address has exactly one meaning, and the link behaves the same in a browser, an email, a text message, or a printed document.
Modern browsers do some of this work quietly — type a search with spaces into the address bar and the browser encodes it before sending the request. But the moment you build a link by hand, write a redirect, craft an affiliate link, or pass data through a form, you are responsible for the encoding. That is when a dedicated url encoder earns a place in your bookmarks.
URL Encoder vs URL Decoder: When to Use Each
Use the encoder when you are creating something. Building a search link by hand, adding tracking parameters to a marketing link, putting a pre-filled message into a share link, or sending form data through a URL all need encoding first. If the link contains a space, a quote, an ampersand, or any character outside plain letters and numbers, encode it before you share it.
Use the url decoder when you are reading something someone else sent. Long affiliate links, tracking links from email newsletters, and links copied out of analytics tools are often fully encoded and impossible to read at a glance. Paste one in, choose Decode, and the real destination, the search terms, and the tracking parameters become visible in seconds. It is also the quickest way to check a link before you click it: decode it, read the actual address, and make sure it goes where it claims to go.
A common mistake is encoding twice. Encoding an already-encoded link turns %20 into %2520, and the server then reads a literal “%20” instead of a space. If a decoded link still looks encoded, decode it once more — but never encode the same text twice.
Characters You Will See Encoded Most Often
- Space becomes %20. The most common case of all. A search for “coffee and cake” becomes coffee%20and%20cake inside a URL.
- Ampersand (&) becomes %26. An ampersand starts a new parameter, so one inside a value must be encoded or the value gets split in two.
- Question mark (?) becomes %3F. A question mark starts the query string, so one inside a value has to be encoded.
- Equals sign (=) becomes %3D. An equals sign joins a name to its value, so one inside the value itself must be encoded.
- Slash (/) becomes %2F. A slash separates path segments, so one inside a single value must be encoded.
- Hash (#) becomes %23. A hash starts a page fragment, so one inside a value must be encoded or the rest of the link is treated as a fragment.
- Plus (+) becomes %2B. In query strings a plus can mean a space, so a real plus sign in your data must be encoded.
- Non-English letters and emoji are encoded as UTF-8 byte sequences, which is why they look so long in an encoded link — a single accented letter can become several percent codes.
Where a URL Encoder Comes in Handy
Developers building query strings. When code builds a URL from user input — a search box, a filter, a username — each value must be encoded so a stray ampersand or space never breaks the request. This tool lets you test the exact output before it goes into your code, and the “keep intact” checkbox mirrors the difference between encoding a whole address and encoding a single value.
Marketers and affiliates. Tracking links, UTM parameters, and pre-filled share messages all travel inside URLs. Encode them once and they work in every email client, ad platform, and social network without breaking. A broken tracking link does not just look bad — it loses the attribution for the sale.
SEO and content work. Slugs, canonical tags, redirects, and internal links all need clean addresses. Encoding a title with special characters before it becomes a slug keeps the link valid and crawlable, and decoding a redirect chain shows exactly where each hop points.
Sharing links in chat and email. A link with spaces or brackets pasted into a message often gets cut off at the first space, so the recipient clicks a broken half-link. Encode it first and the whole address arrives intact, on any device.
Debugging broken links. When a link returns a 404 or a form submits the wrong value, decoding the URL usually reveals the problem in seconds: a double-encoded %2520, a missing %26, or a value that was never encoded at all. When you need to encode url online quickly for a test, a browser tool beats installing anything.
Tips for Clean, Working Links
- Encode values, not whole URLs. Encode each piece of data separately, then join the pieces with ? & and =. Encoding an entire address turns its slashes and question marks into codes and the link stops working — that is what the “keep intact” checkbox is for.
- Watch out for double encoding. If a decoded link still looks encoded, decode it again. If an encoded link contains %25, it has probably been encoded twice.
- Remember that + means space in query strings. In the query part of a URL, a plus sign is read as a space. If your data contains a real plus, encode it as %2B or the server will read it wrong.
- Encode before you shorten. URL shorteners wrap whatever you give them. Feed them a properly encoded link so the short version points at the right destination, not a broken copy.
- Test the round trip. Encode your text, then decode the result. If you get back exactly what you started with, the link is safe to share. The Swap button on this page does the round trip in one click.
Frequently Asked Questions
Is this URL encoder free?
Yes. It is free to use as often as you like, with no signup, no daily limit, and no account. The tool runs in your browser, so there is nothing to install and nothing to pay for.
What is the difference between encodeURI and encodeURIComponent?
encodeURI is for a whole address: it leaves the structural characters : / ? & = and # alone and encodes the rest. encodeURIComponent is for a single value: it encodes everything that is not a plain letter, digit, or one of – _ . ! ~ * ‘ ( ). Use encodeURIComponent for values and encodeURI for complete URLs — the “Keep : / ? & = intact” checkbox on this page switches between the two.
Why do spaces become %20 in URLs?
Spaces are not allowed in a web address, so they are replaced by their percent-encoded form, %20. Some systems use a plus sign instead, but only inside query strings. In the path part of a URL, %20 is the correct encoding for a space.
Can I decode a URL to see where it really goes?
Yes. Paste the link, choose Decode, and the tool shows the plain address, including any tracking parameters and redirect targets hidden inside the encoded text. It is a quick way to check a suspicious or overly long link before clicking it.
Is my data private when I use this tool?
Yes. The encoding and decoding happen in JavaScript on your own device. Your text is never uploaded, logged, or sent to any server — close the tab and it is gone.
Does it work on my phone?
Yes. The tool runs in any mobile browser. Paste a link from your messaging app, encode or decode it, and copy the result back — no app needed.
Encode Your Next Link in Seconds
A broken link costs a click, a sale, or a reader — and most of the time the cause is a single unencoded character. Paste the text above, let this url encoder do the work, and share links that arrive intact every time. And when the link is sorted, explore our other free online tools — calculators, converters, and generators that all run right in your browser, free forever.
Explore More Free Tools
- Base64 Encoder & Decoder — encode text to Base64 or decode it back.
- JSON Formatter & Validator — pretty-print, validate and minify JSON instantly.
- Text Case Converter — UPPERCASE, lowercase, Title Case and more in one click.
- Lorem Ipsum Generator — placeholder text for mockups and layouts.
- Image Resizer — resize images to exact pixels or percentages in your browser.
- Percentage Calculator — find X% of Y and percentage change instantly.
