URL Encoder/Decoder

Encode text for safe use in URLs or decode percent-encoded strings back to readable text. Essential for web development and API work.

Convert special characters to percent-encoded format for safe use in URLs

0 characters
Result
Enter text above to convert
Common URL Encodings
" "%20
"!"%21
"#"%23
"$"%24
"&"%26
"="%3D
"?"%3F
"@"%40
URL encoding converts special characters into a format safe for transmission in URLs. This tool uses JavaScript's encodeURIComponent/decodeURIComponent for standard RFC 3986 encoding.

How to Use This Tool

  1. 1

    Choose encode or decode mode

    Select 'Encode' to convert regular text to URL-safe format, or 'Decode' to convert percent-encoded strings back to readable text.

  2. 2

    Enter your text

    Type or paste the text you want to convert. For encoding, enter plain text with spaces and special characters. For decoding, paste URL-encoded strings.

  3. 3

    View the result instantly

    The converted result appears in real-time as you type. Character counts show the length of both input and output.

  4. 4

    Copy the result

    Click the Copy button to copy the converted text to your clipboard for use in URLs, APIs, or code.

Frequently Asked Questions

What is URL encoding?
URL encoding (percent-encoding) replaces special characters with a % sign followed by their hexadecimal ASCII value. For example, a space becomes %20. This ensures URLs are transmitted correctly.
When should I use URL encoding?
Use URL encoding when passing data in query strings (?name=value), form submissions, or any URL that contains special characters like spaces, &, =, ?, or non-ASCII characters.
What's the difference between encodeURI and encodeURIComponent?
encodeURI is for complete URLs and preserves : / ? & = characters. encodeURIComponent encodes everything except letters, digits, and - _ . ~. This tool uses encodeURIComponent for maximum safety.
Is this tool secure?
Yes. All encoding and decoding happens entirely in your browser. No data is sent to any server. Your text remains completely private.