Skip to content

URL Encoder and Decoder Online

Encode or decode URLs and URL components, safely handling spaces, symbols, and special characters.

Runs entirely in your browser β€” your files are never uploaded to a server.

Last updated

This tool runs entirely in your browser. Your text is never uploaded to our servers.

How It Works

1. Choose Your File

Drag & drop or select the file you want to work with.

2. Processed in Your Browser

Everything happens locally on your device β€” your file is never uploaded anywhere.

3. Download Your Result

Get your finished file instantly, ready to save or share.

About URL Encoder and Decoder Online

URLs can only safely contain a limited set of characters β€” letters, numbers, and a handful of symbols. Anything else (spaces, accented characters, symbols like & or ? that already have special meaning within a URL’s structure) needs to be encoded into a safe, percent-based representation before it can reliably travel through a URL.

This is why you sometimes see %20 in a URL where you’d expect a space, or %3F where you’d expect a literal question mark β€” these are the encoded, URL-safe representations of characters that couldn’t appear directly without breaking the URL’s own structure.

This comes up constantly when building URLs programmatically β€” passing a search query, a name with special characters, or any user-provided text as part of a URL parameter needs encoding first, or the resulting URL can break entirely or be silently misinterpreted by whatever reads it.

Frequently Asked Questions

How do I URL encode a string?

Paste the text into Input, choose the component mode, and click Encode. Component mode uses encodeURIComponent, which escapes everything that could break a URL part, including spaces, ampersands and question marks. Use full URL mode only when encoding a complete address you want to keep working.

How do I URL encode special characters?

Use component mode. It converts reserved characters such as & ? = / # : and + into percent codes like and , and also encodes non-English letters as UTF-8. Full URL mode leaves reserved characters like :// and ? untouched, so it will not escape them.

How do I URL encode a space?

A space becomes . Paste your text, click Encode, and spaces in the output are replaced with in either mode. Some form submissions use + for spaces instead, but this tool outputs . Click Decode to turn back into a space.

How do I URL encode a password?

Use component mode so characters like &, #, %, + and @ become safe percent codes. This matters when a password sits inside a connection string or URL. Avoid putting passwords in URLs where possible, since addresses can end up in logs and browser history.