Skip to main content
Web Utility

URL Encoder / Decoder

Encode URL components, decode percent-encoded text, and inspect query strings locally. Useful for redirects, API calls, tracking links, and debugging copied URLs.

URL encoding examples and workflows

Use this URL encoder and decoder for query parameters, redirects, APIs, OAuth callback URLs, and copied links.

How to use this tool

  1. Paste plain text, a URL component, or a full URL.
  2. Choose encode or decode mode, then pick component or full URL handling.
  3. Copy the transformed output or inspect parsed query parameters.

Real examples

  • hello world becomes hello%20world.
  • name=Lin & role=admin becomes name%3DLin%20%26%20role%3Dadmin in component mode.
  • Decode %E4%BD%A0%E5%A5%BD into readable UTF-8 text.

Common use cases

  • Prepare query parameter values for API calls.
  • Decode copied redirect URLs before debugging.
  • Inspect UTM, OAuth, SSO, and webhook parameters without sending them to a server.

Sample input/output

  • Input: hello world & tea=green.
  • Component output: hello%20world%20%26%20tea%3Dgreen.
  • Decode: turn q=hello%20world back into readable query text.

Common errors and fixes

  • URI malformed: check for a percent sign that is not followed by two hex characters.
  • Plus signs: many form-encoded query strings use + for spaces.
  • Double encoding: decode once before encoding again if you see repeated %25 sequences.

Edge cases table

Case Best mode
One query value Component mode, similar to encodeURIComponent.
Complete URL Full URL mode, similar to encodeURI, preserves separators.
Emoji or Chinese text Use UTF-8 percent encoding, then decode to confirm readability.

Edge cases / errors

  • Malformed percent escapes cannot be decoded safely.
  • Full URL mode preserves URL separators where possible.
  • Component mode encodes reserved characters more aggressively.

Use these tools for common developer data and identifier workflows.

URL Encoder / Decoder FAQ

Short answers for encoding and decoding choices.

Does this upload URLs?

No. The input is transformed locally in your browser.

What is component mode?

Component mode encodes text for one URL part, such as a query parameter value.

What is full URL mode?

Full URL mode preserves separators such as slashes, colons, and question marks.

Why do decoding errors happen?

Malformed percent encoding, such as an incomplete percent escape, cannot be decoded safely.