Home
URL Encoder & Decoder

URL Encoder & Decoder

Safely encode and decode URLs and query parameters with RFC 3986, encodeURIComponent, encodeURI, and formUrlEncoded modes.

Action:
Standard:
Input URL or Text
97 chars
Result
159 chars
Tokens:27 (%XX)(0.05ms)

Zero-Knowledge Local Execution

All data processing, parsing, and compilation execute strictly inside your local browser memory. Zero external server uploads.

Instant Client-Side Engine

Instant real-time reactive computation delivers immediate feedback on every keystroke with zero network latency.

Production Standards & Compliance

Strictly validates syntax, edge cases, and formatting rules for dependable production output.

Technical Reference & Architecture Guide

URL Encoder & Decoder — Reference Guide

Safely encode and decode URLs and query parameters with RFC 3986, encodeURIComponent, encodeURI, and formUrlEncoded modes.

URL Encoder & Decoder — Reference Guide — Client-Side In-Memory Architecture & Data Flow
URL Encoder & Decoder — Reference Guide — Client-Side In-Memory Architecture & Data Flow

Key Parameters & Controls

Key Parameters & Controls
ParameterType / UnitDescriptionDefault
Input Text / URLStringURL, URI string, or raw query parameters to encode or decode.https://example.com/search?q=hello world
Standard / ModeEnumEncoding standard: encodeURIComponent, encodeURI, RFC 3986, or formUrlEncoded.encodeURIComponent
DirectionEnumOperation direction: Encode vs Decode.encode

Pro Tips & Best Practices

Encoding Nested Query URLs

encodeURI preserves characters like '?' and '&'. If you need to embed a URL inside another URL query parameter, always use encodeURIComponent or RFC 3986.

RFC 3986 API Signature Encoding

OAuth 1.0/2.0 signatures and AWS Signature Version 4 require strict RFC 3986 percent-encoding, where characters like ! * ' ( ) must be encoded.

Form URL-Encoded Space Handling

In application/x-www-form-urlencoded, spaces become '+' instead of '%20'. When decoding, this tool properly turns '+' into standard whitespace.

Common Gotchas & Troubleshooting

⚠️URIError: URI malformed during decoding

This occurs when an invalid percent sequence (like '%G5' or incomplete '%') is found. Verify the percent encoding sequences.

⚠️Query parameters are cut off at '&'

Values containing '&' must be encoded as '%26' before appending to the query string.

Frequently Asked Questions

What is the difference between encodeURI and encodeURIComponent?▼

encodeURI is meant for complete URLs and does not encode reserved characters like : / ? # & =. encodeURIComponent encodes these characters, making it suitable for parameter values.

Why does space turn into '+' in forms?▼

The application/x-www-form-urlencoded MIME type specifies '+' as the space representation for legacy historical compatibility in HTTP POST form submissions.

Are tokens or private URLs sent to an external server?▼

No. All encoding and decoding operations execute entirely in your browser using local JavaScript.

What is the difference between encodeURI and encodeURIComponent?▼

encodeURI preserves protocol and path delimiters like '://', '/', and '?' for full URLs, while encodeURIComponent encodes everything including slashes and query delimiters, making it suitable for individual query parameter values.