URL Encoder / Decoder — Free Online Tool

Percent-encode or decode text for URLs using encodeURIComponent or encodeURI, in both full-string and component modes.. URL Encoder / Decoder is a free online tool from the ToolsRift Developer Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading URL Encoder / Decoder

How to use URL Encoder / Decoder

Paste text and choose encode or decode plus component or full-URL mode. Component mode escapes reserved characters like & and = for use inside query values.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI keeps URL structure characters like / and ? intact; encodeURIComponent escapes them too, which is right for individual parameter values.

Why does a space become %20?

Space is not a safe URL character, so it is escaped as %20 (or + in form-encoded query strings) to keep the URL valid.

Does it handle Unicode?

Yes — text is encoded as UTF-8 first, so characters like é become multi-byte escapes such as %C3%A9 and decode back correctly.

More Developer Tools

JSON to Query String
Convert a JSON object into a URL query string with bracket notation for nested objects and arrays, fully percent-encoded.
Duration Humanizer
Convert milliseconds or seconds into a readable duration like 1d 2h 3m 4s, and break it down across every time unit.
Timestamp Diff
Compute the difference between two dates or Unix timestamps in days, hours, minutes, seconds and a humanized string.
UUID v5 Generator
Generate deterministic RFC 4122 v5 UUIDs by SHA-1 hashing a name within a namespace (DNS, URL, OID, X.500 or custom).
HMAC Generator
Compute HMAC message authentication codes with SHA-1, SHA-256, SHA-384 or SHA-512 and a secret key, in hex or base64.
Color Contrast Checker
Check WCAG 2.1 contrast ratio between a foreground and background color, with AA and AAA pass/fail for text sizes.

← View all Developer Tools