snaptools
%
URL Encoder error
⌃⏎ run · clear · / focus input
// about this tool

URL Encoder Online

Updated 2026-07-09

Percent-encode text and URLs online, instantly and privately in your browser. Paste a string and SnapTools replaces reserved and unsafe characters with their "%XX" codes as you type, so the value slots cleanly into a query string or path. Nothing is uploaded; the encoding runs locally, so it's safe for private data.

Characters like spaces, "&", "?", and "=" have special meaning in a URL, so passing them raw can break a link or change which parameters a server sees. URL encoding escapes them while leaving normal text readable. It's a reversible transform, not encryption, so it secures nothing on its own.

// how to use

  1. 1 Paste or type the text or URL you want to encode into the input panel on the left.
  2. 2 SnapTools percent-encodes special characters as you type.
  3. 3 Read the encoded string in the output panel on the right.
  4. 4 Use Copy or Download to take the encoded value with you.

// examples

Encode a query value
Input
a b&c
Output
a%20b%26c
Encode an email address
Output
name%2Btag%40example.com

// common uses

Building query strings safely Encoding values for redirect parameters Escaping user input in links Constructing API request URLs

// faq

No. Encoding happens entirely in your browser, so nothing is uploaded and your input never leaves your machine.
No. Percent-encoding is a reversible transform, not encryption — it provides no security. Anyone can decode it, so never rely on it to hide data.
Reserved and unsafe characters — spaces, "&", "?", "=", "#", "%", "+", and others — are replaced with a "%XX" hex code so they don't break the URL's structure. Letters, digits, and a few safe symbols are left as-is.
URL encoding only escapes characters that are unsafe in a URL, leaving most text readable. Base64 re-encodes everything into a compact ASCII alphabet. Use URL encoding for query strings, Base64 for binary or arbitrary data.
Use the URL Decoder, which turns "%XX" sequences back into the original characters.

↳ Curious to go deeper? Read the URL encoding explained (percent-encoding) guide →

Use this via API

Get a free API key →
curl -X POST https://snaptools.dev/api/v1/tools/url-encode \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"a b&c"}'
Esc
↑↓ navigate open Esc close