ToolSprinkle.

URL encoder & decoder

Encode query values with UTF-8 percent encoding or decode URL components. See how spaces, plus signs and double encoding behave locally.

From input to insight.
PROCESSED ON YOUR DEVICE

Ready when you are.

◎ No uploads. Your input stays here.↗ Free to use. No account needed.⌘ / Ctrl + Enter to run

A worked example

Using the default settings. You can try the same input in the workspace.

Input / settings

hello world & coffee

Expected result

hello%20world%20%26%20coffee
A LITTLE GUIDANCE

How to use URL encoder & decoder

Choose Encode for one parameter value or path segment, or Decode for a percent-encoded component. Run the tool, then copy the result into the appropriate part of your URL.

Good to know

Uses encodeURIComponent/decodeURIComponent, not whole-URL encoding or form-urlencoded parsing. Decode preserves + literally. Encoding is not URL validation or HTML sanitization.

A few quick answers.

Should I paste a full URL or a parameter value?

This encodes a URI component, including slashes and question marks. Use it for a parameter value, not to preserve the structure of a full URL. Decoding requires valid percent sequences.

Is my input sent to a server?

No. This tool processes your input in your browser. We don't store your text, files or results. Standard website access logs are separate; read our privacy notes.

Can I use it for free?

Yes. No account, subscription or usage credits are required.

How do I keep my result?

Use Copy or Download after running the tool. Inputs are not saved automatically and disappear when you leave or refresh the page.

URL components, spaces and double encoding

Encode a value, not a complete URL

For a query such as ?q=hello%20world, encode only hello world, then add the parameter name and separators yourself. A slash in a value becomes %2F; ? becomes %3F and & becomes %26. Pasting https://example.com/a?x=1 encodes its structural punctuation too, so the result is not a ready-to-open version of that URL.

Spaces and literal plus signs are different

Encode mode changes a b+c into a%20b%2Bc. Decode mode changes a%20b%2Bc back into a b+c, but leaves a+b as a+b. HTML form encoding can use + for spaces; this tool does not parse that format. Separate a query value before decoding it rather than decoding an entire query and losing the distinction between data and separators.

Unicode and malformed escapes

café 🌍 becomes caf%C3%A9%20%F0%9F%8C%8D. These are percent-encoded UTF-8 bytes. In Decode mode, an incomplete percent sequence such as % or an invalid UTF-8 sequence such as %FF produces an error, not a repaired guess. Letters, digits and - _ . ! ~ * single quote and parentheses remain unescaped by encodeURIComponent; stricter destination formats may need additional rules.

Encode and decode one layer at a time

Encoding %20 produces %2520 because the percent sign is encoded too. Decoding %2520 once returns %20, not a space. Decide which encoding layer your destination expects; repeatedly decoding until text looks readable can change data or security boundaries. Percent encoding does not make a javascript: URL safe, validate a domain or create a human-readable slug.

Choose the encoding for your destination: Base64 text representation, URL parameter values or HTML text escaping. These are not interchangeable security controls. Copy the result before switching tools; input is not transferred automatically.

Keep your flow going.

More developer tools ↗

What would you like to do?

↑ ↓ Navigate · Enter Open · Esc Close. Switching tools clears unsaved input.