Toolnova
File & Data Convert

URL Encode / Decode

Percent-encode any URL, query string or text for safe use in web addresses, or decode an encoded string back to human-readable form — free, instant and entirely in your browser.

  • 100% free
  • No signup
  • Private — in your browser
  • No watermark
Live tool · runs in your browser
Highlights

Why use URL Encode / Decode?

  • Encodes and decodes the full Unicode character set including emoji and non-Latin scripts
  • Built-in percent-encoding reference table for the most common special characters
  • Swap button to quickly chain encode-then-decode for round-trip verification
  • Free, private and instant — no server involved, nothing is logged
Overview

About URL Encode / Decode

URL encoding (also called percent-encoding) converts characters that are not allowed or have special meaning in URLs into a safe format. Spaces become %20, ampersands become %26, and non-ASCII characters like accented letters or emoji are encoded as UTF-8 byte sequences. This tool uses the browser's native encodeURIComponent and decodeURIComponent functions, which follow RFC 3986 and correctly handle the full Unicode range.

Common use cases include building query strings for APIs, preparing form data for GET requests, encoding UTM parameters, and debugging URL issues in analytics or tracking setups. The quick-reference table inside the tool shows the most frequently encountered character encodings at a glance. All processing happens client-side, so sensitive URLs (for example those containing tokens or credentials) stay private.

Step by step

How to use URL Encode / Decode

  1. 1

    Select encode or decode mode

    Choose "Encode" to convert a raw URL or text to percent-encoded form, or "Decode" to convert an encoded string back to readable text.

  2. 2

    Paste your input

    Paste the URL, query string or encoded text you want to process. The input box accepts any Unicode text.

  3. 3

    Copy the result

    Click the Encode or Decode button, then use the Copy button to grab the output. Use "Use as input" to swap the result back for further processing.

FAQ

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a complete URL and leaves characters like /, :, ? and # intact because they are structural. encodeURIComponent encodes everything except letters, digits and - _ . ! ~ * ' ( ), making it suitable for encoding individual query parameter values. This tool uses encodeURIComponent.

Why does my URL contain %20 instead of a plus sign?

Both %20 and + can represent a space, but %20 is the RFC 3986 standard. Plus signs for spaces are a legacy form-encoding convention (application/x-www-form-urlencoded). Modern APIs and encodeURIComponent use %20.

Is my URL data safe when I use this tool?

Yes. All encoding and decoding happens in your browser with no server communication. URLs containing tokens, passwords or sensitive query parameters never leave your device.

Can I decode a fully encoded URL at once?

Yes. Paste the entire encoded URL into the decode input and click Decode. All percent-encoded sequences will be converted back, including multi-byte UTF-8 characters.

What characters are NOT encoded?

encodeURIComponent leaves unreserved characters unchanged: A–Z, a–z, 0–9, and the symbols - _ . ! ~ * ' ( ). All other characters including spaces, punctuation and non-ASCII characters are percent-encoded.

Related file & data convert

See all file & data convert

Browse more free tools

Explore every category in our toolbox.