What Is URL Encoding?
A web address can only contain a limited set of characters. Spaces, accents, Arabic letters, emoji and symbols such as & and # are either not allowed or have a special meaning. URL encoding, also called percent encoding, replaces each unsafe byte with a percent sign and two hexadecimal digits. A space becomes %20, an ampersand becomes %26, and the letter é becomes %C3%A9. Decoding turns those codes back into readable text.
How to Use the URL Encoder and Decoder
- Type or paste your text or link into the left box.
- Press Encode to make it safe for a link, or Decode to read an encoded one. With live mode on, the result updates as you type.
- Choose an encoding type and character set if the defaults do not suit you.
- Press Copy result, Download, or Use result as input to convert it back and check your work.
Encoding Types Explained
- Everything: encodes every character that is not a letter, number or one of - _ . ~ ! ' ( ) *. Use it for a single value that will sit inside a link, such as a search term.
- Full URL: leaves the characters that give a link its structure, such as : / ? & = and #, and encodes only spaces and unsafe characters. Use it for a whole address. The option to keep existing % codes stops a link that is already partly encoded from being encoded twice.
- Form style: turns spaces into + as web forms do, and encodes more symbols. Use it for data in the application/x-www-form-urlencoded format.
- Every character: turns all characters into %XX codes, letters included. It is handy for testing and for seeing exactly which bytes a text contains.
- Strict: also encodes ! ' ( ) *, which some systems treat as special.
Which Characters Get Encoded?
Letters, numbers and the four symbols - _ . ~ are always safe and are never encoded. Characters such as : / ? # @ ! $ & = + , and ; are reserved: they have a job in the address, so they are encoded when they appear inside a value. Everything else, including spaces, quotes, accents and every non-English letter, is encoded. Common codes include space %20, & %26, = %3D, # %23, ? %3F, / %2F, + %2B and % itself %25.
Decoding Options
- Treat + as a space: web forms often write spaces as +. Turn this on when decoding that kind of data.
- Keep invalid % codes: a broken code such as %zz would normally stop decoding. With this on, the rest is decoded and the broken part stays as written, with a count shown. Turn it off to get an error and its position instead.
- Decode repeatedly: text that was encoded twice shows %2520 instead of %20. This option decodes until nothing changes, up to 10 times, and tells you how many passes it took.
- Each line separately: converts a list of values, one per line.
Character Sets and Non-English Text
Percent codes represent bytes, so text must first be turned into bytes. Modern systems use UTF-8, in which é is two bytes (%C3%A9) and an emoji is four. Older systems used single-byte sets such as ISO-8859-1, where é is just %E9. If you decode with the wrong set, accented letters turn into odd symbols, so try another set when a result looks garbled. The tool tells you when part of the data is not valid in the chosen set.
Understand Any URL
When you paste a full address, the breakdown panel splits it into protocol, host, port, path, fragment and every query parameter, all decoded. Passwords in a link are hidden. To practise, paste the address of a tool page such as the Lumara Crypto Tax Calculator and see how it is made up.
Press Copy parameters as JSON to turn the query string into a JSON object, with repeated keys grouped as lists. Paste it into the JSON Formatter & Validator to inspect or tidy it. Query values are sometimes JSON themselves, so decode first, then format.
Common Mistakes
- Encoding a whole link with the Everything type, which turns https:// into https%3A%2F%2F and breaks it. Use Full URL for whole addresses.
- Encoding the same text twice, which turns %20 into %2520.
- Forgetting that + means a space in form data but is a literal plus sign elsewhere.
- Not encoding a value that contains & or #, which cuts the value short.
- Using the wrong character set for older links.
How Percent-Encoding Works
Text is first turned into bytes, normally with UTF-8. Every byte that is not a safe character is then written as a percent sign followed by two hexadecimal digits. A space is one byte, so it becomes %20. The letter é takes two bytes, so it becomes %C3%A9, and Arabic letters take two bytes each. Decoding reverses the process: each code turns back into its byte, and the bytes are read as text.
Examples
- Encoding
hello world & more?with the Everything type giveshello%20world%20%26%20more%3F. - Encoding the whole link
https://example.com/search?q=hello world&lang=arwith the Full URL type giveshttps://example.com/search?q=hello%20world&lang=ar. The structure stays, and only the space changes. - The Arabic word
مرحباbecomes%D9%85%D8%B1%D8%AD%D8%A8%D8%A7. - Form style turns
a b+cintoa+b%2Bc, with a plus sign for the space. - Text that shows
%2520was encoded twice. With Decode repeatedly on, the tool decodes it in 2 passes and returns a space.
When You Need It
- Building links that carry search terms, names or other values.
- Reading tracking links and redirect addresses.
- Debugging query strings that arrive garbled.
- Putting non-English words into web addresses.
Frequently Asked Questions
What is the difference between %20 and +?
Both can mean a space. %20 works anywhere in a URL. + means a space only in form-style query strings.
Should I encode the whole URL or just parts?
Encode the values, not the structure. Use Everything for a single value, and Full URL only to tidy a complete address.
What does %25 mean?
It is an encoded percent sign. Seeing %25 often means text was encoded twice.
Is URL encoding the same as Base64?
No. URL encoding escapes unsafe characters one at a time. Base64 rewrites data in a different alphabet. See the Base64 Encoder/Decoder for that.
Does it support Arabic and emoji?
Yes. They are converted with UTF-8 by default.
Is my text sent or saved?
The conversion runs in your browser. The tool does not send or save your text. The page also loads a cookie banner and an advertisement from third-party services, described in our Privacy Policy. Do not paste secrets or links that contain private tokens into any online tool.
Related Tools and Guide
- Base64 Encoder/Decoder Encode text or files to Base64 and decode Base64 back to text or files. Supports Unicode, other character sets and URL-safe Base64.
- Text to Slug Converter Turn titles into clean, SEO-friendly URL slugs. Convert many lines at once and handle accents, Arabic, Cyrillic and Greek.
- JSON Formatter & Validator Format, minify, validate and fix JSON with a tree view and clear error messages that show the line and column.
- Read the guide: URL Encoder/Decoder: Encode and Decode Links Safely A step-by-step article about this tool.