Mentigo Icon
MentigoInstrument deck
deck Data & Code Utilities URL Encoder / Decoder
Back to deck
Data & Code Utilities

URL Encoder / Decoder

Encode query parameters and paths for query strings, or decode URI-encoded targets.

Runs privately in your browser — your input is never uploaded or tracked.

URL Encoder and Decoder — Percent-Encoding Made Easy

Encode URLs and query parameters or decode percent-encoded strings instantly with this free online URL encoder/decoder. Special characters like spaces, ampersands, question marks, and non-ASCII text break URLs unless they are properly percent-encoded — this tool does it correctly in one click, entirely in your browser.

It supports both encodeURIComponent-style encoding (for query string values) and full-URI encoding, so you can safely build API requests, share links with special characters, debug redirect chains, and inspect what an encoded tracking URL actually contains.

How to URL-Encode or Decode a String

  1. Paste your text or URL

    Drop in the raw string you want to encode, or the %-encoded string you want to decode.

  2. Pick encode or decode

    Choose the direction — the conversion updates live as you type.

  3. Choose component or full URL mode

    Encode a single query parameter value, or encode a full URL while preserving its structure.

  4. Copy the result

    One click copies the safely encoded (or human-readable decoded) string to your clipboard.

Features of the URL Encoder / Decoder

  • Component and full-URI modes

    Correctly handles the difference between encoding a parameter value and encoding an entire URL.

  • UTF-8 aware

    International characters, emoji, and symbols are percent-encoded to spec (RFC 3986).

  • Live two-way conversion

    Instant results in both directions — perfect for debugging redirects and callback URLs.

  • Runs fully client-side

    URLs with tokens or session IDs never leave your machine.

  • Whitespace and plus handling

    Understands the difference between %20 and + so form-encoded data decodes correctly.

Frequently Asked Questions

What is percent-encoding (URL encoding)?

Percent-encoding replaces unsafe characters in URLs with a % followed by their hexadecimal byte value — for example, a space becomes %20. It ensures URLs remain valid and unambiguous across browsers and servers.

When should I use encodeURIComponent vs encodeURI?

Use component encoding for individual values placed inside a query string (it encodes &, =, ?, /). Use full-URI encoding when you want to sanitize a complete URL while keeping its structure intact.

Why does my URL contain %2520?

That is double encoding — a %20 that was encoded again (% became %25). Decode the string twice with this tool to recover the original text, and fix the code that encodes it twice.

How are spaces encoded in URLs?

In URL paths and modern query strings a space is %20. In legacy application/x-www-form-urlencoded form data, a space may appear as +. This tool handles both conventions.