LocalFirstTools.com — data tools that never leave your device
No upload — everything runs on your device

URL Encode / Decode

Percent-encode query strings, paths and fragments. Nothing is uploaded.

The URL encoder percent-encodes per UTF-8 byte, so é (2 bytes) becomes %C3%A9 (6 characters); only letters, digits and the four unreserved marks - _ . ~ always pass through unchanged.

What does the URL Encode do?

URL encoding (percent-encoding) replaces reserved characters so they can travel safely in a query string or path. This tool wraps encodeURIComponent and decodeURIComponent.

How does the URL Encode work?

Encode maps characters such as spaces and ampersands to % sequences. Decode reverses them. Both functions run locally.

Does this upload my data?

No. This page never sends your input to a server — formatting, decoding and hashing all run in this tab, on this device.How that works.

Frequently asked questions

Encode vs encodeURI?

This tool uses encodeURIComponent, which also encodes ?, &, and =. That is the right choice for query values, not for a full URL you want to keep as a URL.

Why did decode fail?

A lone % or a truncated escape sequence is invalid. Check the string for incomplete %HH groups.

Does plus become space?

Not here. application/x-www-form-urlencoded treats + as space; this tool follows JavaScript's decodeURIComponent, which does not.

Is input uploaded?

No.

Related tools

Browse allencoding toolsor thefull tool directory.