URL Encoder & Decoder

Encode URLs for safe transmission or decode percent-encoded strings back to plain text. Smart mode preserves URL structure (:// ? & =) while encoding special characters.

awaiting input
Smart encode mode: preserves :// ? & = # so full URLs remain valid. Special characters in values (spaces, brackets, non-ASCII) are percent-encoded.
Plain URL / text input
URL-encoded output (click to copy)
URL breakdown
ComponentValue

What is URL encoding?

Percent encoding
URL encoding replaces unsafe characters with a % followed by the character's hex value. A space becomes %20.
When to encode
Encode query parameters containing special characters before appending them to a URL. This prevents the server from misinterpreting &, = or # as delimiters.
Safe characters
Letters (A–Z, a–z), digits (0–9), and - _ . ~ are safe and never need encoding. Everything else should be percent-encoded.