DevURL Encoder & Decoder

URL Encoder & URI Decoderfor Query Strings

Percent-encode and decode URI parameterswith strict RFC 3986 compliance.

URL Encoder & Decoder Workstation
Zero-Upload Sandbox
Source URL Buffer
RFC 3986 Standard Conformance87 Characters
Processed Output & Inspector
Query Parameters (4):Parsed Keys
query: developer tools
filter: zero-upload
lang: en
version: 2.0
In-Memory Sandbox: Zero network transmissions. Your data never leaves your browser.
Dev Engine•Zero Network Transit
Engine Features

Engineered for speed, precision, and total privacy

Encode & Decode Modes

Switch instantaneously between percent-encoding and human-readable decoding.

Component vs. Full URI

Choose strict parameter encoding or structural full-URL preservation.

Unicode UTF-8 Safety

Properly handles international characters and multi-byte query strings.

Zero Cloud Transit

Signed URLs, webhook parameters, and auth redirects never leave browser RAM.

Quick Tutorial

How to use URL Encoder & Decoder in four steps

1

Select Direction

Choose Encode or Decode mode along with Component or Full URI mode.

2

Paste String

Insert raw query values or an encoded URL string into the left editor.

3

Inspect Result

Verify percent-encoded octets or decoded query parameters on the right.

4

Copy Output

Copy the sanitized URL string cleanly to your clipboard.

Debugging Guide

Four common pitfalls and how to avoid them

1. Using encodeURI for Query Values

encodeURI leaves & and = unescaped, which splits nested URL parameters.

IncorrectencodeURI("a=1&b=2")
CorrectencodeURIComponent("a=1&b=2")

2. Double-Encoding Already Safe URLs

Running percent-encoding twice turns %20 into %2520 and breaks API routes.

Incorrect%20 -> %2520
CorrectEncode raw values once

3. Confusing + and %20 Spaces

application/x-www-form-urlencoded uses + for spaces while RFC 3986 uses %20.

IncorrectAssume + always decodes
CorrectNormalize query + vs %20

4. Pasting Signed URLs Online

Decoding presigned S3 links or OAuth callbacks on remote sites leaks credentials.

IncorrectRemote URL decoder
CorrectLocal browser RAM decoder
Architecture Guide5 min readDev Engineering

RFC 3986 Percent-Encoding: encodeURI vs. encodeURIComponent

Avoiding broken OAuth callbacks, query delimiters, and double-encoding bugs in web URLs.

Key Architectural Takeaways
  • RFC 3986 Safe: Translates spaces, ampersands, slashes, and Unicode characters into valid %XX octets.
  • Component vs. Full URI: Switch between encodeURIComponent and encodeURI modes cleanly.
  • Zero URL Logging: Decode private OAuth callback URLs, tokens, and webhooks locally.

1. encodeURI vs. encodeURIComponent in RFC 3986

JavaScript provides two built-in URI functions with distinct responsibilities under RFC 3986. encodeURI preserves structural URL delimiters such as :, /, ?, &, and = so a complete address remains routable. However, if you embed a callback or redirect URL inside a query parameter, unescaped & and = delimiters collide with the outer query string.

encodeURIComponent escapes every reserved delimiter and multi-byte UTF-8 character into %XX hexadecimal octets, making it the right choice whenever serializing arbitrary user input, search queries, email addresses, or nested redirect URLs inside query parameters.

uri-encoding.ts
RFC 3986 Standard
const redirect = 'https://app.example.com/cb?step=2&ok=true';
// Safe as a query parameter value:
const safeUrl = '/login?next=' + encodeURIComponent(redirect);

2. Debugging Complex Redirects and Webhooks Locally

OAuth 2.0 authorization flows, SSO callbacks, and payment webhook endpoints frequently chain multi-layered percent-encoded query parameters, signed tokens, and base64 payloads. Decoding them strictly inside browser memory lets you inspect nested URLs, parameter values, and scopes safely.

Toolbly also helps spot double-encoding bugs immediately, such as `%2520` appearing where `%20` was mistakenly encoded a second time in middleware.

3. Component Encoding vs. Full URI Preservation

Selecting the right encoding scope prevents broken API routes and malformed redirects:

encodeURIComponent (Parameter Values)

Escapes /, ?, &, =, and : into %XX bytes. Always use this when inserting a value or nested URL after ?key=.

encodeURI (Complete URLs)

Keeps https://, domain slashes, and query delimiters intact while safely encoding spaces and international UTF-8 characters.

Pro tip: Always use encodeURIComponent for individual query parameter values, and reserve encodeURI only for complete top-level paths.

4. Zero-Upload Safety for Presigned URLs

Presigned cloud storage links, OAuth callback URLs, and magic login links often carry short-lived bearer signatures in query strings. Decoding and inspecting them strictly inside local browser RAM guarantees credentials never touch external logs.

Common Questions

Frequently Asked Questions

Use Component when encoding a single query parameter value; use Full URI when keeping https:// and / intact.
Explore More

Related Developer Utilities

View All 24+ Tools
★★★★★
4.9/5
CreatorDeveloperDesignerStudent
120K+

Over 120,000+ developers, designers, and
creators choose Toolbly daily

Empowering Your Daily
Creative Workflow

Trust us to deliver cutting-edge in-browser speed, complete local privacy, and precision utilities, all designed to help you build, format, and convert effortlessly.