URL Encoder/Decoder
Encode URLs and decode percent-encoded strings for web development. Essential for handling special characters in URLs.
What is URL Encoding (Percent-Encoding)?
URL encoding (also called percent-encoding) converts characters that are not safe in a URL into a format that can be transmitted reliably. URLs have special meanings for characters like ?, &, #, =, and spaces — so when those characters are part of the actual data (for example, a search term or a file name), they must be encoded.
In percent-encoding, a character is converted to its UTF-8 bytes, and each byte is written as % followed by two hexadecimal digits. For example, a space becomes %20, and the letter é becomes %C3%A9 because UTF-8 encodes it as two bytes (C3 A9).
This matters most in query parameters (anything after ?) and when building URLs dynamically in JavaScript. Correct encoding prevents broken links, incorrect parameter parsing, and unexpected behavior when users type special characters.
What is URL encoding?+
URL encoding replaces unsafe characters (spaces, &, ?, non-ASCII) with % followed by hex digits so they can be used in a URL.
Can I encode many lines at once?+
Yes, enable line-by-line mode to encode each line separately.
Are my files uploaded anywhere?+
No. Encoding happens entirely in your browser. Nothing is sent to a server, so your data stays on your device.
Related Tools
Base64 Encoder/Decoder
Encode and decode Base64 strings instantly. Perfect for encoding binary data, images, or text.
HTML ↔ Markdown Converter
Convert HTML to Markdown or Markdown to HTML instantly.
JSON ↔ XML Converter
Convert JSON to XML or XML to JSON instantly. Free, private and runs entirely in your browser.