Skip to main content
Developer
New

URL Encoder / Decoder

Encode or decode URI components for query strings, form values, and path segments in your browser.

URL encode / decode

Encode or decode URI components for query strings and path segments.

No input yet

Paste a value to encode or decode.

Was URL Encoder / Decoder helpful?

Stored locally for now - helps us improve this tool.

Why people trust ToolMint

Free utilities designed for privacy, speed, and everyday reliability.

  • 100% Free

    Core tools stay free with no paywall to unlock basics.

  • No Registration Required

    Open a tool and start immediately - no account needed.

  • Privacy First

    We avoid unnecessary collection and keep processing local when possible.

  • Browser Processing

    Most tools run in your browser so your input never needs a server round-trip.

  • Fast & Secure

    HTTPS everywhere with instant, client-side results for everyday tasks.

  • Mobile Friendly

    Layouts and controls are built for phones, tablets, and desktops.

  • Updated Regularly

    Tools and content are improved continuously as the platform grows.

Tool statistics

Local visit data for this browser only.

Opened
Last used
Favorite
Category
Developer
Version
1.0.0

Key Features

  • Component-accurate encoding

    Uses JavaScript's encodeURIComponent/decodeURIComponent so query parameters, form values, and path segments come out exactly as browsers and servers expect.

  • Form-encoding aware decoding

    Plus signs are automatically treated as spaces during decode, matching the application/x-www-form-urlencoded convention used by HTML forms.

  • Friendly error handling

    Malformed percent-encoded sequences produce a clear, readable error message instead of a cryptic thrown exception.

  • Fully local processing

    Every conversion runs in your browser's JavaScript engine, with no network request sent for the text you type.

How to Use

  1. 1

    Pick encode or decode

    Choose the direction based on whether you have raw text to protect, or a percent-encoded string to read.

  2. 2

    Paste your value

    Enter the raw text, query value, or already-encoded string you want to convert.

  3. 3

    Review the result and length

    Check the converted output along with input and output character counts to confirm nothing was truncated or misinterpreted.

  4. 4

    Copy the result into your code

    Copy the encoded or decoded value directly into your URL, HTTP client, curl command, or source code.

Use Cases

  • Building query strings by hand

    Safely encode search terms, filter values, or redirect URLs before appending them to a link.

  • Debugging broken redirects

    Decode a suspicious-looking URL from logs or browser history to see the real parameter values behind the percent signs.

  • Inspecting webhook and API payloads

    Quickly decode form-encoded or query-string parameters captured from API requests during debugging.

  • Preparing values for command-line tools

    Encode arguments before pasting them into curl commands or shell scripts that expect URL-safe text.

Examples

Encoding a search query

Prepare a phrase with a space for use as a query parameter.

blue shoes
blue%20shoes

Encoding reserved characters

Escape characters that would otherwise be interpreted as URL syntax.

a&b=c
a%26b%3Dc

Decoding a form-encoded value

Convert a value posted from an HTML form back to readable text.

hello+world%21
hello world!

Benefits

  • Produces exactly the encoding real browsers use for query parameters
  • Surfaces clear errors instead of a blank screen when decoding fails
  • Handles the plus-for-space form-encoding convention automatically
  • Saves a trip to the browser console or a curl -G test just to encode a value
  • Keeps potentially sensitive parameter values off any server, including ToolMint's

Best Practices

  • Encode individual parameter values, not an entire URL including its scheme and host - that breaks the URL structure.
  • Decode step by step when a value looks double-encoded (%2520 instead of %20) rather than assuming a single pass will fix it.
  • Remember encodeURIComponent escapes more characters than encodeURI - use this tool's component-level output for query values, not full paths.
  • Verify decoded output before trusting it in security-sensitive contexts; encoding is not validation or sanitization.

Common Mistakes

  • Encoding a complete URL, which turns the scheme separators (://) and slashes into percent-encoded junk instead of a working link.
  • Assuming percent-encoding is the same as HTML entity escaping - they solve different problems and are not interchangeable.
  • Treating encoded text as secure or hidden, when it is simply a reversible, publicly documented transformation.

Privacy Notice

All encoding and decoding runs locally in your browser's JavaScript engine. ToolMint never receives, logs, or stores the values you type, which makes it safe to use even for parameters that contain internal identifiers.

About This Tool

What is this tool?

A URL encoder/decoder converts text to and from percent-encoded URI component form using the same algorithm browsers use for encodeURIComponent and decodeURIComponent. Reserved and non-ASCII characters are replaced with a % followed by their hexadecimal byte value so the result is safe to embed in a URL.

Why use it?

Developers frequently need to prepare query parameters, debug malformed redirect URLs, or inspect webhook payloads that arrive percent-encoded. Doing this by hand or in a browser console is slow; a dedicated tool with clear error handling makes the round trip fast and less error-prone.

Limitations

This tool targets URI component encoding specifically - it is not a full URL parser, does not validate URL structure, and does not perform HTML entity escaping. Very unusual or already-mixed encodings may require more than one decode pass.

Frequently Asked Questions

Suggested Articles

Help improve URL Encoder / Decoder

Found a problem or missing feature? Tell us - no account required.

Report issue

Request a tool

Last updated:

Share this tool