URL Encoder (Percent-Encoding)
Paste text to percent-encode it for use in a URL. Pick component mode to escape every reserved character for a query value, or full URL mode to keep the slashes, query and fragment markers intact.
How to URL encode text
- Paste the text or URL you want to encode into the box.
- Choose component to escape everything, or full URL to keep the structure.
- Copy the encoded result.
Examples
Encode a query value (component)
a b&c
a%20b%26c
Encode a whole URL (full URL)
https://x.com/a b?q=1&r=2
https://x.com/a%20b?q=1&r=2
Frequently asked questions
When should I use component vs full URL encoding?
Use component mode (encodeURIComponent) for a single query value or path segment, since it escapes reserved characters like / ? # & = so they cannot break the URL. Use full URL mode (encodeURI) when you have a complete address and want to keep those structural characters working.
What is percent-encoding?
Percent-encoding replaces a character with a percent sign followed by its byte value in hex, for example a space becomes %20. It lets a URL carry characters that would otherwise be unsafe or have special meaning.
Which characters get encoded?
Letters, digits and the marks - _ . ! ~ * ' ( ) are left as-is. Component mode escapes everything else, including spaces, slashes and ampersands. Full URL mode also escapes spaces and unsafe characters but preserves : / ? # & = + $ , ; @ so the URL stays valid.
Why is a space %20 and not a plus sign?
In the path and most of a URL a space is encoded as %20. The plus sign only means a space inside the older application/x-www-form-urlencoded format used by HTML form bodies, so this tool always outputs %20 to stay correct everywhere.
How are accented letters and emoji handled?
They are encoded as their UTF-8 bytes. For example café becomes caf%C3%A9. This matches how browsers and servers expect non-ASCII text in a URL.
Is my text private?
Yes. Encoding runs entirely in your browser, so nothing you paste is uploaded or stored.
Related tools
URL Decoder
Decode URL-encoded text online. Turn %20, %26 and + back into readable characters, with full unicode support. Free, instant and runs in your browser.
Base64 Encode
Encode text to Base64 online. UTF-8 safe, handles emoji and accents, with an optional URL-safe (base64url) mode. Runs in your browser, nothing uploaded.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.
Base58 Encoder
Encode and decode Base58 online with the Bitcoin alphabet. Convert text to Base58 or back, UTF-8 safe, no confusing 0 O I l. Runs in your browser.
Base64 Decode
Decode Base64 to plain text online. Paste a Base64 or base64url string and get instant UTF-8 output. Free, fast and runs in your browser.