OOnDevice

URL Encoder/Decoder

Encode or decode URLs and query strings — right in your browser. Uses encodeURIComponent and decodeURIComponent.

Works offlineNothing uploaded

How to use it

1

Paste your URL or text

Enter a URL to encode or an encoded string to decode.

2

Choose encode or decode

Select whether to URL-encode or decode your input.

3

Copy the result

Click copy to grab the encoded or decoded output.

When to use URL Encoder/Decoder

You're building a redirect URI for an OAuth flow by hand and the ampersand in your callback URL is silently breaking the handshake — or a log entry shows a garbled query string that arrived with `%22` and `%3D` scattered through it and you need to read the actual parameter value. Paste any URL or query component here and `encodeURIComponent` handles the encoding, or paste percent-encoded text and get the decoded, human-readable string back in one click. Useful for constructing deep links, debugging OAuth callback parameters in Okta or Auth0, or reading URL-encoded values from a server access log without firing up a terminal. Everything runs on your computer — no server sees the URLs.

  • Decode a mangled OAuth redirect URI from an Auth0 error log
  • Encode a query parameter containing special characters for a REST call
  • Build a deep link with an encoded JSON payload for a mobile app

About this tool

Spaces become `%20`, ampersands break query strings, and special characters in redirect URIs cause OAuth errors that are annoying to trace. Paste a URL or query string to encode it using `encodeURIComponent`, or paste a percent-encoded string to decode it back to readable text. Useful when building a redirect parameter by hand, debugging a URL that arrives mangled in a log, or constructing a query string for an API request without firing up a terminal. No upload required — the encoding and decoding run entirely in your browser. Encode a component, decode a full URL, or do both directions back to back.

Frequently asked

Is this private? Do you upload my URL?
No. encodeURIComponent and decodeURIComponent run in this browser tab — the URL or query string you enter is never posted to any server.
What is URL encoding?
URL encoding replaces special characters with percent-encoded values (e.g. space becomes %20) so they can be safely used in URLs and query strings.
What is the difference between encodeURI and encodeURIComponent?
encodeURIComponent encodes all special characters including /, ?, and &, making it ideal for query parameter values. encodeURI leaves URL structure characters intact.
Is my data safe?
Yes. The percent-encoding and decoding happen in this browser tab — the URL components you enter are processed locally and cleared when you leave the page.