URL Encoder Decoder Online

Encode special characters for URLs or decode percent-encoded strings. Supports both encodeURI and encodeURIComponent modes.

Related Tools

Base64 Encoder/Decoder

Encode or decode Base64 strings instantly.

Open Tool โ†’

JSON Formatter

Format, validate, and minify JSON data.

Open Tool โ†’

QR Code Generator

Generate QR codes from any text or URL.

Open Tool โ†’

Recommended Tools

Recommended Color palettes with Coolors Fast color scheme generator Recommended Design with Figma Free collaborative design tool

Frequently Asked Questions

What is URL encoding?

URL encoding (also called percent encoding) replaces special characters in a URL with a percent sign (%) followed by two hexadecimal digits. For example, a space becomes %20. This ensures URLs are valid and transmitted correctly.

What is the difference between Encode and Encode Component?

Encode (encodeURI) encodes a full URI but preserves characters like :, /, ?, #, and &. Encode Component (encodeURIComponent) encodes everything except letters, digits, and - _ . ~, which is what you want for query parameter values.

When should I URL encode?

URL encode whenever you pass user input or special characters in URLs, query strings, or form data. This prevents broken URLs and potential security issues like injection attacks.

Why do spaces become %20 or + in URLs?

In URL encoding, spaces are represented as %20. In form data (application/x-www-form-urlencoded), spaces become +. Both are valid representations of a space in different contexts.