Developer Tools

URL Encoder / Decoder

Encode and decode URI components entirely in your browser.

Encode text into a URI-safe component or decode a percent-encoded string, entirely in your browser. This encodes and decodes URI components — the same behavior as JavaScript's encodeURIComponent — not a full-URL parser. Need to compare two versions of text instead? Try Text Diff.

Your text never leaves your device. Encoding and decoding happen entirely in your browser.
This tool performs URI component encoding and decoding (the same behavior as JavaScript's encodeURIComponent / decodeURIComponent), not a full-URL encoder. Delimiter characters like : / ? & = are encoded too, so this is meant for encoding a single value (like a query parameter), not an entire URL.
0 characters
0 characters

How it works

Private URL encoding and decoding in your browser

1

Add your text

Type or paste plain text or a percent-encoded string into the input.

2

Encode or decode

Click Encode to percent-encode it, or Decode to reveal the original text.

3

Copy the result

Copy the output, or click Swap to run the result back through the tool.

Use cases

When this comes in handy

Build a query string value

Encode a value like a search term or redirect URL before adding it to a query string.

Debug a percent-encoded URL

Decode a URL from logs or a browser address bar to read it in plain text.

Check what a link actually contains

Decode a shared link to verify its parameters before clicking or sharing it further.

FAQ

Common questions

Is my text uploaded anywhere?

No. Encoding and decoding happen entirely in your browser.

Does this encode a whole URL or just part of it?

It encodes URI components, matching encodeURIComponent(). Delimiter characters like : / ? & = are encoded too, so it's meant for encoding a single value such as a query parameter, not an entire URL.

What happens if I decode invalid percent-encoding?

You'll see a clear error message instead of a crash. Fix the encoded text and click Decode again.

Does it handle Unicode and emoji?

Yes. Unicode text, emoji, and non-Latin scripts are encoded and decoded correctly.

Related Tools