DoneInTab

URL Encoder & Decoder

Encode and decode URL components and full URLs with full Unicode and emoji support. Easily switch between Component mode (encodeURIComponent) and Whole-URL mode (encodeURI). 100% private and client-side.

Encoding Scope:
Understanding URL Encoding Modes

Component Mode (encodeURIComponent): Recommended for query parameters, hash fragments, and values placed inside a URL. Converts symbols like &, =, ?, /, and spaces so they are not misinterpreted as URL syntax delimiters.

Try an example:
Input String or URL0 characters
Encoded Result0 characters

100% Client-Side Privacy Guarantee

Your files are processed directly on your device using WebAssembly / JavaScript. No document bytes are ever uploaded to any server or cloud storage.

How URL Percent-Encoding Works

When to use Component Mode

Use Component mode when you are preparing a piece of data to place inside a URL query parameter, pathname segment, or fragment. Characters like &, =, /, and ? have functional grammatical meaning in URLs. If your data contains those characters, failing to encode them will break the query structure.

When to use Whole-URL Mode

Use Whole-URL mode when you have an entire address (including https://example.com/path?param=1) that contains invalid characters like raw spaces or non-ASCII characters, and you want to ensure it is valid HTTP syntax without destroying the scheme or separators.

Frequently Asked Questions

What is the difference between Component mode and Whole-URL mode?

Component mode (encodeURIComponent) encodes all reserved characters including '&', '=', '?', '/', and '#' into percent-encoded entities. This is essential when embedding user input into query parameters or hash fragments so delimiters aren't misinterpreted. Whole-URL mode (encodeURI) preserves protocol, domain, and URL structural delimiters, encoding only spaces and non-ASCII Unicode characters.

Are my URLs sent to any remote server or logged?

No. All encoding and decoding occurs strictly within your local browser's JavaScript engine. Your URLs, query parameters, API keys, or tokens entered into this utility never leave your device.

Why do I get a 'Malformed percent-encoding' error when decoding?

Percent decoding requires that every '%' sign be followed by exactly two valid hexadecimal digits representing an ASCII code or valid UTF-8 byte sequence (e.g. %20 for space, %C3%A9 for é). If a '%' sign is cut off, followed by invalid letters, or contains an incomplete multi-byte sequence, the browser's native decoder flags it as malformed.

Does this tool support international Unicode characters and emojis?

Yes. Modern URL percent-encoding utilizes UTF-8 bytes. Accented characters, Cyrillic, Arabic, Asian scripts, and emojis are reliably encoded into multi-byte percent sequences and cleanly decoded back.

Can I inspect individual query parameters?

Yes. When you enter a full URL or query string, the tool automatically parses and lists individual parameter keys and values in a clear breakdown table.

Related Developer Utilities