Converters

URL Encode & Decode

Encode or decode URL components instantly in your browser. Handles percent-encoding and special characters. No signup, no install. Free forever.

Text to encode
Encoded output

What is URL Encode & Decode?

URL encoding (also called percent-encoding) replaces special characters with a percent sign followed by two hex digits so they travel safely inside HTTP requests. Spaces become %20, ampersands become %26, and so on. This tool encodes a raw string into a safe URL component, or decodes a percent-encoded string back to human-readable text — instantly in your browser.

Frontend developers, API testers, backend engineers, and anyone building or debugging HTTP requests use URL encoding constantly. If you've ever seen a query string break because an ampersand was unescaped, or had to manually decode a URL to read its parameters, this tool eliminates both problems in one click. It's also essential when building redirect rules, OAuth flows, or deep links.

Everything runs in your browser — your data never leaves your device. No account needed, no sign-up, no server upload. Just paste and go.

How to use

1
Choose Encode or Decode
Select whether you want to encode a raw string into percent-encoding, or decode a percent-encoded string back to plain text.
2
Paste your input
Drop in the raw string or the percent-encoded value you want to convert.
3
Copy the output
The result appears immediately. Use the copy button to grab it for use in your code or browser.
4
Swap input and output
Use the swap button to quickly flip the input and output — useful when working back and forth.

Frequently asked questions

QIs my data safe when using this tool?

Yes. Everything happens in your browser using JavaScript's built-in encoding functions. Nothing is sent to a server.

QIs there a length limit?

No server-side limit. The constraint is only your browser's memory, which can handle very long strings.

QDo I need to create an account?

No. All useTool tools are completely free and require no sign-up.

QWhat's the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL and leaves characters like /, ?, and # intact. encodeURIComponent encodes a single query parameter value and escapes those characters too. This tool uses encodeURIComponent for the Encode mode.

QWhy does a space become %20 and not +?

Both %20 and + represent spaces in URLs, but + is only valid in query strings (application/x-www-form-urlencoded). %20 is the correct percent-encoding and works everywhere.

Found a bug or issue with this tool?
If something isn't working as expected, let us know and we'll fix it.
Report this bug
Embed this tool

Copy and paste this iframe code into your website.

<iframe   src="https://usetool.space/embed/converter/url-encode"  width="100%"   height="860px"  frameborder="0"  loading="lazy"  title="URL Encode & Decode — useTool"></iframe>
✨ Missing something?
Can't find the tool you need?
Request it — we build new tools based on what people ask for.
Request a tool