Encode and decode URLs for safe transmission with various encoding options including standard URL encoding and plus encoding.
Enter URL or text to encode/decode
Encoded/decoded result
Converts special characters to percent-encoded format (%XX) for safe transmission in URLs.
Alternative encoding where spaces become + (commonly used in form data).
CodingBubble's URL Encoder tool helps you encode special characters in URLs for safe transmission, or decode percent-encoded URLs back to readable text. Essential for working with query strings, API parameters, and web development.
Your input is sent to our server for processing and is not saved there. Our usage logs record metadata (tool, sizes, timing, browser type and a hashed IP address) and error messages, which can include fragments of your input. See our Privacy Policy for details on how we handle data.
Original URL:
https://example.com/search?q=hello world
URL Encoded:
https://example.com/search?q=hello%20world
URL encoding (also called percent encoding) converts special characters into a format that can be safely transmitted in URLs. Characters like spaces, &, and = are replaced with %XX codes.
URL encode when passing data in query strings, form submissions, or API parameters. Any character that isn't a letter, number, or safe symbol (-_.~) should be encoded.
encodeURI encodes a full URL but keeps characters like : / ? & intact. encodeURIComponent encodes everything except letters, numbers, and -_.~. Use encodeURIComponent for individual parameter values.
Your input is sent to our server for processing and is not saved there. Our usage logs record metadata (tool, sizes, timing, browser type and a hashed IP address) and error messages, which can include fragments of your input.
Common characters and their percent-encoded values:
| Character | Encoded |
|---|---|
| space | %20 |
| ! | %21 |
| # | %23 |
| $ | %24 |
| % | %25 |
| & | %26 |
| ' | %27 |
| ( | %28 |
| ) | %29 |
| + | %2B |
| , | %2C |
| / | %2F |
| : | %3A |
| ; | %3B |
| = | %3D |
| ? | %3F |
| @ | %40 |
Letters, digits, hyphen, period, underscore and tilde are unreserved and do not need encoding.
In a URL path, a space is written as %20. In form submissions and many query strings, it can also be written as +. Use the Encode (+) and Decode (+) buttons for the form style, and the standard buttons for %20. A literal plus sign must be encoded as %2B, or a form-style decoder will turn it into a space.
No. The hyphen is an unreserved character, so it stays as it is. The same applies to periods, underscores and tildes.
The value was encoded twice. The percent sign of %20 was encoded again as %25. Decode it twice, and encode only once in your code.