Black Friday: Kinsta 50% off for 3 months · WPX first month $1.80 · InMotion up to 73% off — See the 4 hosting deals →
Sharjeel TahirYour everyday toolkit
Menu

URL Encode & Decode

Make text safe for URLs and query strings, or turn %-encoded links back into readable text.

  • Free, no sign-up
  • Code stays in your browser
  • Works on phone and desktop
  • 100% private — runs in your browser
Sharjeel Tahir

By Sharjeel Tahir

WordPress & Technical SEO Specialist · Lahore, Pakistan

Mode

Make text safe for URLs and query strings, or turn %-encoded links back into readable text. No sign-up, no uploads: everything runs in your browser, results appear instantly, and your data never leaves your device. Built for everyday use on phones and desktops alike.

What does this tool do?

URL-encodes text (percent-encoding) and decodes it back — handling spaces, Urdu characters and reserved symbols correctly, with component vs full-URL modes.

The URL Encode & Decode is also a teaching aid in disguise: clear error messages and instant feedback make abstract formats concrete. Paste a broken example and the tool does not just fail — it shows you exactly where and why, which is how formats get learned.

The interface keeps things practical: the inputs are “Encode as”, “Input” and “Output”; the “kind” control offers “Component (query values)” and “Full URL”; “Copy output” grabs the result for pasting elsewhere; “Download” saves it as a file; “Swap” runs the tool. Results update live as you work — there is no waiting and nothing to submit.

How do I use this tool?

Paste your input, adjust any options, and copy the result — the whole workflow is paste, glance, copy, with no waiting in between.

  1. Enter your values in “Encode as”, “Input”, “Output”.
  2. Results update instantly as you type — no button to press.
  3. Use “Copy output” to grab the result for pasting elsewhere.
  4. Use “Download” to save the result.

How does it work?

Each byte outside the unreserved set becomes %XX (hex). UTF-8 text encodes byte-wise, so Urdu characters become multi-byte sequences like %D8%A7. Component mode encodes everything reserved (for query values); full-URL mode preserves :/?# structure.

Parsing is strict where it matters (formats with specs) and lenient where it helps (whitespace, line endings). Errors are reported at the exact position with a plain explanation, because a tool that just says “invalid” teaches nothing.

Use cases in Pakistan

Developers build share links with Urdu text, WhatsApp click-to-chat URLs (wa.me with prefilled text), and API query strings. Bloggers fix broken links with special characters; marketers encode UTM parameters correctly.

From Lahore’s software houses to freelance developers working with Gulf and Western clients, these small utilities punctuate every workday: checking a payload, generating a key, converting a format. They are the screwdrivers of the trade — unglamorous, indispensable, and used dozens of times daily.

Limitations

It encodes characters, not URL validity — a well-encoded bad URL is still bad. Double-encoding (%2520) is the classic bug: encode once, at the right layer.

Edge cases in specifications can surprise: when a result looks wrong, check the spec’s fine print (or the tool’s stated conventions) before blaming the tool. For production-critical work, verify against your own toolchain as well.

Frequently asked questions

Why do URLs show %20?

%20 is the encoded space. Browsers display it when the URL contains characters that must be percent-encoded. When something looks wrong, test with the simplest possible input first — isolating the problem beats staring at a large payload.

How do I share a link with Urdu text?

Paste it above in full-URL mode — the Urdu encodes to %XX sequences that work everywhere. Keep the original input saved somewhere; transformations are one-way streets and re-running from scratch is easier than undoing.

encodeURI vs encodeURIComponent?

Component mode (encodeURIComponent) is for values inside a URL; full mode (encodeURI) preserves the URL’s own :/?# characters. For production use, verify the output in your actual toolchain once — the browser and your server should agree, and it is worth confirming.

What is double-encoding?

Encoding an already-encoded string: %20 becomes %2520. It breaks links — encode once. When something looks wrong, test with the simplest possible input first — isolating the problem beats staring at a large payload.

Is my data uploaded or stored?

No. This tool runs entirely in your browser — what you type or paste never leaves your device, is never sent to a server, and is never stored. Closing the tab removes all trace. Keep the original input saved somewhere; transformations are one-way streets and re-running from scratch is easier than undoing.

Is it really free? Do I need an account?

Yes, free, and no account needed. Open the page and use it — no sign-up, no trial, no watermark on results. For production use, verify the output in your actual toolchain once — the browser and your server should agree, and it is worth confirming.

Updated October 2026 · Built and tested by Sharjeel Tahir · How our tools are tested