How do I URL encode text for free?
Type or paste your text, pick a mode, and click Encode. The URL-safe encoded result appears instantly. It is free, runs in your browser, and nothing is uploaded.
Developer Tools
Encode or decode URL and query string values.
Component encodes everything, best for a single query parameter value.
Type or paste text to encode, or paste a percent-encoded URL you want to decode.
Choose Component for a single query value or Full URL for a whole address, then Encode or Decode.
Copy the output, or send it back as input to chain encode and decode steps.
URLs can only contain a limited set of characters. Spaces, accented letters, emoji and symbols like &, ? and # have special meaning or are not allowed, so they must be written as a percent sign followed by a code. This is called percent-encoding or URL encoding. Decoding turns those codes back into readable text.
You need it when you put user text into a query string, build API requests by hand, share links that contain search terms, or read a long tracking link to see where it really goes.
| Character | Encoded | Notes |
|---|---|---|
| Space | %20 (or + in forms) | The most common one |
| & | %26 | Separates query parameters, must be encoded inside a value |
| ? | %3F | Starts the query string |
| # | %23 | Starts a page fragment |
| / | %2F | Path separator |
| @ | %40 | Used in emails inside URLs |
| é | %C3%A9 | Non-English letters become UTF-8 bytes |
| 😀 | %F0%9F%98%80 | Emoji use 4 bytes |
In JavaScript, encodeURIComponent encodes everything except letters, digits and - _ . ! ~ * ' ( ). Use it for a single value, like a search term inside ?q=. encodeURI leaves characters that build a URL (: / ? & = #) untouched, so use it only for a full address. Encoding a value with encodeURI is a common bug: an & inside the value then splits your parameter in two.
This tool uses component encoding by default, which is the safe choice for values. Double encoding (%2520 instead of %20) usually means a value was encoded twice; decode it twice to read it.
Search for "pdf & word converter" becomes q=pdf%20%26%20word%20converter. Decoding https%3A%2F%2Fcraftora.dev%2Fmerge-pdf gives back https://craftora.dev/merge-pdf.
Type or paste your text, pick a mode, and click Encode. The URL-safe encoded result appears instantly. It is free, runs in your browser, and nothing is uploaded.
Paste the encoded URL into the input box and click Decode. Percent codes like %20 turn back into spaces and the original text is restored.
Component mode encodes everything, which is right for a single query parameter value. Full URL mode leaves structural characters like : / ? # alone, which is right when encoding a complete web address.
It is the encoded form of a space. URLs cannot contain raw spaces, so they are replaced with %20. Decoding turns them back into spaces.
Yes. Encoding and decoding run entirely in your browser on your own device. Your text is never sent to any server.
No. The URL encoder and decoder is free with no account and no limits.
JPG, PNG, and WebP all store images, but picking the wrong one gives you blurry photos, huge files, or lost transparency. Here is exactly when to use each, in plain English.
Read guide →A large PDF is a pain to email or upload, but most compressors either barely shrink it or turn your crisp text into a blurry mess. Here is how to reduce PDF file size while keeping it looking clean.
Read guide →Combining several PDFs into one file used to mean paid software or uploading private documents to a stranger server. Here is the faster, safer way to merge PDF files for free.
Read guide →