Skip to main content
DigiToolBay
Developer ToolsClient-Side Browser Processing

URL Encoder & Decoder

Percent-encode or decode full URLs or query components with optional + space form decoding.

Loading URL Encoder & Decoder...

Processed locally with RFC 3986 percent-encoding APIs.

By DigiToolBay Editorial TeamPublished & verified:

About URL Encoder & Decoder: Guide & Practical Notes

Choosing the wrong encoding function breaks links fast: `encodeURI` fails to escape `&` inside a nested query parameter, whereas `encodeURIComponent` mangles `https://` when applied to a full URL.

Provides dedicated Query Component (`encodeURIComponent`) and Full URL (`encodeURI`) modes along with safe decoding and optional `+`-to-space conversion for HTML form strings.

How to Use URL Encoder & Decoder Step by Step

  1. Select Query Component (for parameter values) or Full URL (for entire links).
  2. Toggle "Treat + as space" when decoding `application/x-www-form-urlencoded` query strings.
  3. Click Encode or Decode and copy the clean string.

Worked Example

Encode a search parameter containing spaces and `&`.

Inputs: Mode: Query Component | Input: "15% of 200 & more"

Result: 15%25%20of%20200%20%26%20more

Notice `%`, spaces, and `&` all percent-encode so the query value stays safely inside one URL parameter.

RFC 3986 Percent-Encoding vs. Form Plus Encoding

`encodeURIComponent` escapes reserved URI delimiters (`:`, `/`, `?`, `#`, `&`, `=`), making it right for individual query values. `encodeURI` preserves structural separators so a full URL remains clickable.

Common Real-World Uses

  • Safely embedding callback URLs inside OAuth `redirect_uri` query strings
  • Decoding messy tracking URLs or server access logs
  • Fixing broken UTF-8 characters inside shared links

Common Mistakes to Avoid

  • Double-encoding an already percent-encoded URL (`%20` turning into `%2520`).
  • Forgetting `+` represents a space in HTML form query strings but literally `+` in path segments.

Supported Formats, Scope & Limitations

Malformed percent sequences such as `%E0%A4%A` or trailing `%` trigger explicit URI decoding errors.

Privacy & Local Processing

URLs are processed locally without network requests.

Frequently Asked Questions

Why do spaces sometimes become %20 and sometimes +?

RFC 3986 URL encoding uses `%20`, while legacy `application/x-www-form-urlencoded` query submissions use `+`.

Which mode should I use for an entire URL with parameters?

Use Full URL (`encodeURI`) for a complete link, or encode only the parameter values with Query Component.

Want to inspect every parsed key-value parameter of a link? Try the URL Parser.