Free Developer Tool

URL Encoder: Encode URLs and Query Strings Online

Paste a link or text, click once and get a safe, percent-encoded string. Spaces become %20, & becomes %26 and every special character is ready for a web address. Free, no signup.

Percent encoding Encode spaces Encode query strings Full URL or component Copy in one click One-click clear No signup

Make Any Text Safe for a URL

URLs can only carry a limited set of characters. Spaces, ampersands, accents and emoji have to be converted first, or links break and parameters get cut off. This URL encoder applies standard percent-encoding, so what you paste comes out ready for a link, an API call or a tracking parameter.

Read more

Encode the URL in One Click

Paste your text, click Encode URL and every unsafe character becomes a % code. "red shoes & bags" turns into red%20shoes%20%26%20bags, ready to drop into any link.

Spaces Done Right: %20 or +

In paths, a space should be %20. In HTML form data and many query strings, + is also accepted. Pick the option that matches where the encoded URL is going, so the server reads it correctly.

Encode Query Strings and API Parameters

Passing an email, a search phrase or another URL as a parameter? Encode that value on its own before adding it after ?key=. That stops characters like & and = from splitting your parameters by mistake. Anything you encode for URL parameters should be encoded on its own, never the whole string at once.

Full URL or Just One Component

Encoding a whole address keeps :, / and ? intact so the link still works. Encoding a component converts those too, which is what you want for a single value. The tool supports both modes.

URL Encoding and Decoding, Side by Side

Need to read an encoded link? Our URL Decode tool reverses the process. Used together, they give you a complete URL encoder decoder setup for debugging redirects, UTM tags and API requests. It’s URL encode decode in one place, and you can check exactly how a URL encoded value will reach the server.

Encode URLs Online From Any Device

No software, no extensions. The URL encoder online works in any browser, so you can encode a URL on your laptop at work or your phone on the go. Keep it bookmarked as your URL encode online shortcut.

How to Encode a URL

1

Paste your URL or text

Put the link, parameter value or plain text into the input box. Click Sample for a quick demo.
2

Choose the encoding mode

Pick component mode for a single value, or full URL mode to keep the link structure. Turn on + for spaces if you’re building form-style query strings.
3

Click Encode URL

The encoder converts every unsafe character into its percent-encoded form.
4

Copy the encoded URL

Click Copy and paste it into your code, browser or marketing tool. Hit Clear to start fresh.

URL Encoder FAQs

Common questions about URL encoding and percent codes.

What is URL encoding?

URL encoding, also called percent-encoding, replaces characters that aren’t allowed in a URL with a % followed by two hex digits. For example, a space becomes %20 and @ becomes %40. It’s defined in the URL standard (RFC 3986).

Why do URLs need to be encoded?

Characters like spaces, &, # and ? have special meanings in URLs or aren’t allowed at all. Encoded URLs keep those characters as data, so links don’t break and servers read the values correctly.

How do I URL encode in JavaScript?

For a single value, use encodeURIComponent('your text'). For a full address where you want to keep : / ? and #, use encodeURI(url). Most javascript URL encode bugs come from using encodeURI on a parameter value, which leaves & and = unencoded. Looking for url encode javascript examples? encodeURIComponent is the one to remember.

Should a URL encode space be %20 or +?

%20 is correct everywhere. The + sign only means a space inside application/x-www-form-urlencoded data, like HTML form submissions. If you’re not sure, use %20.

Which characters does encoding in URL change?

Letters, digits and - _ . ~ stay as they are. Almost everything else gets encoded, including spaces, quotes, &, =, /, ?, # and any non-English characters, which are first turned into UTF-8 bytes.

Can I encode a URL that’s already encoded?

You can, but you’ll get double encoding, where %20 becomes %2520. Decode it first with our URL Decode tool if you’re unsure. With both tools open, you can URL encode and decode in either direction.

Is URL encoding the same as encryption?

No. Encoding just changes the format so it’s safe to send. Anyone can decode it. Never rely on it to hide passwords or private data.

Is this URL encoder free?

Yes. It’s free to use, with no signup and nothing to install.

URL ready? Share it smarter.

Read encoded links with our URL Decode tool, or turn any link into a scannable code with the QR Code Generator.

URL Decode

Raheel Jakhura

CEO / Co-Founder

Our goal is to provide online free tools so you don't have to install any software for basic usages. We are trying to add more tools and make these tools free forever.

cookies image
We care about your data and would love to use cookies to improve your experience.