URL Encode — Online URL Encoder
🔒 Runs in your browser — nothing is sent to a serverURL encode any text or link into a URL-safe percent-encoded string in a single click. Paste a value below — a query parameter, form field, redirect target or path segment with spaces, `&`, `?` or non-Latin characters — and this tool converts every unsafe byte into a `%xx` escape, producing output ready to drop into a URL. Full UTF-8 is handled: diacritics, CJK characters and emoji all encode losslessly. The entire process runs 100% inside your browser; your input never leaves your device, nothing is uploaded, logged or sent to any server.
When to use a URL encoder
Developers reach for a URL encoder countless times a day: assembling a search query from a user-typed phrase before calling a JSON API, building OAuth redirect URIs with signed state parameters, appending UTM campaign values with spaces and punctuation to marketing links, encoding filenames for a `Content-Disposition` header, or safely putting a JWT or session token into a URL fragment. Running the encode in a trustworthy, offline-first page is the fastest and safest way to produce a value you are about to paste into production code — no copy-pasting through a remote service that might log your tokens.
How percent encoding works
Percent encoding works at the byte level. A URL encoder first converts the input string to its UTF-8 byte sequence — for plain ASCII this is identity, for accented letters it expands to 2 bytes, for most CJK characters 3 bytes, and for emoji up to 4 bytes. It then walks the byte stream: unreserved characters (`A–Z`, `a–z`, `0–9`, `-`, `_`, `.`, `~`) are kept as-is, and every other byte is emitted as `%` followed by two uppercase hexadecimal digits. This page performs the full walk in the browser by delegating to the native `encodeURIComponent` implementation, so no network call is needed and no byte ever leaves your device.
Examples
hello worldhello%20worldhttps://example.com/search?q=free converter&lang=enhttps%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dfree%20converter%26lang%3Dena&b=c+da%26b%3Dc%2BdZürichZ%C3%BCrich