URL Encoder & Decoder
Encode and decode URLs, query strings, and percent-encoded parameters with RFC 3986 compliance and an interactive query parameter inspector.
| Key | Value | Action |
|---|---|---|
| query | developer tools | |
| filter | active | |
| tags | web,jwt,base64 |
How to use URL Encoder & Decoder
- 1Select 'URL Encode' to percent-encode reserved characters, or 'URL Decode' to restore percent-encoded strings to clear plaintext.
- 2Choose your encoding scope: 'Component' (for query values & parameters), 'Full URL' (preserving ://, ?, &, and # delimiters), or 'Form (+)' for HTML form submissions.
- 3Paste your raw string or complex URL into the input pane, or click 'Sample' to test a standard API endpoint with query arguments.
- 4Review the parsed 'URL Components & Query Inspector' table to examine individual keys, values, and protocol metadata.
- 5Click 'Copy' to copy the encoded or decoded URL to your clipboard, or click 'Save' to export to a text file.
Key Features & Highlights
- •RFC 3986 Strict Encoding: Accurately escapes non-alphanumeric characters including !, ', (, ), and * which are often skipped by legacy implementations.
- •Three Tailored Modes: Toggle easily between Component (query parameter values), Full URL (entire links with structural preservation), and Form (+) application/x-www-form-urlencoded spaces.
- •Interactive Query Parameter Inspector: Automatically parses full URLs and extracts query keys and values into an organized, copyable data table.
- •Detailed URL Component Diagnostics: Breaks down and verifies URL protocols, hostnames, directory paths, and fragment identifiers.
- •Percent-Escape Counter: Real-time telemetry displaying the exact number of %XX hexadecimal escape sequences generated.
- •Bi-Directional Instant Swap: Switch between encoded output and decoded input instantly for rapid debugging cycles.
- •100% Client-Side Privacy: No URLs, session tokens, or query parameters are ever uploaded or transmitted across the network.
Understanding URL Encoder & Decoder
Frequently Asked Questions
What is URL percent-encoding and why is it necessary?
Uniform Resource Identifiers (URIs) are constrained by RFC 3986 to a specific subset of ASCII characters. Characters outside this set (such as spaces, emojis, or international alphabets) and characters with syntactic meaning (like '?', '&', '=', and '/') must be encoded into a percent sign followed by a two-digit hexadecimal representation of their UTF-8 byte (for example, a space becomes '%20'). This prevents parsing errors and protects the integrity of transmitted data.
What is the difference between encodeURI() and encodeURIComponent()?
encodeURI() is meant for complete URLs; it leaves functional URL delimiter characters intact (such as 'http://', '?', '&', '=', and '#'). In contrast, encodeURIComponent() encodes every reserved character, making it safe for query string values where an unencoded '&' or '=' would otherwise break the query parser.
Why do some spaces encode as '%20' while others encode as '+'?
In standard RFC 3986 URI paths and modern web standards, spaces are encoded as '%20'. However, the legacy HTML form standard (application/x-www-form-urlencoded) traditionally replaces spaces with '+' in query strings. Our tool provides a dedicated 'Form (+)' option so you can test and generate both formats.
Why does Strict RFC 3986 encode !, ', (, ), and *?
JavaScript's default encodeURIComponent() function does not encode !, ', (, ), and * for historical compatibility. However, RFC 3986 considers these reserved in certain subcomponents. Enabling 'Strict RFC 3986' ensures that these characters are percent-encoded into %21, %27, %28, %29, and %2A for maximum interoperability across OAuth signatures and strict API gateways.
Are my sensitive API query parameters safe?
Yes. All encoding, decoding, and parsing occurs 100% inside your local web browser sandbox. No URLs, query parameters, API keys, or session tokens are ever sent to a remote server or logged in any database.
Related Free Tools
Explore complementary utilities to boost your workflow
Base64 Encoder & Decoder
Encode and decode Base64 strings with UTF-8 emoji support, standard vs URL-safe modes, MIME line wrapping, and data URL image preview.
QR Code Generator
Create custom QR codes for URLs, text, email, phone numbers, and Wi-Fi networks in PNG and SVG.
JWT Decoder
Decode and inspect JSON Web Tokens (JWT) with color-coded Header, Payload, and Signature views, standard claims telemetry, and expiration countdowns.
Sitemap Finder
Find where a website keeps its sitemap — via robots.txt and common paths.