πŸ› οΈDevTools

URL Encoder & Decoder

Free online URL encoder and decoder. Encode special characters for URLs or decode percent-encoded strings instantly.

Ad Slot
Type:
Try:
0 chars
0 chars
URL Encoding Reference
β†’ %20
Space
& β†’ %26
Ampersand
= β†’ %3D
Equals
? β†’ %3F
Question mark
/ β†’ %2F
Forward slash
# β†’ %23
Hash
+ β†’ %2B
Plus
@ β†’ %40
At sign
encodeURI vs encodeURIComponent

encodeURIComponent: Encodes all special characters including /, ?, &, =, #. Use for encoding URL parameter values.

encodeURI: Preserves URL structure characters (/, ?, &, =, #, :). Use for encoding entire URLs while keeping them valid.

encodeURIComponent("a=b&c=d") β†’ "a%3Db%26c%3Dd"
encodeURI("a=b&c=d") β†’ "a=b&c=d" (unchanged)

How to Use

  1. Select 'Encode' to URL-encode text, or 'Decode' to decode percent-encoded strings
  2. Paste your text or URL into the input box
  3. Click the 'Encode' or 'Decode' button
  4. Copy the result from the output box
  5. Use the 'Swap' button to use the output as new input

Example

Input

Hello World! How are you?

Output

Hello%20World%21%20How%20are%20you%3F

FAQ

What is URL encoding?

URL encoding (also called percent-encoding) converts special characters to a format that can be safely transmitted in URLs. For example, a space becomes %20 and & becomes %26.

When should I URL encode?

URL encode when passing special characters in query parameters, form data, or any URL that contains spaces, ampersands, equals signs, or non-ASCII characters.

What's the difference between encodeURI and encodeURIComponent?

encodeURIComponent encodes more characters (including /, ?, &, =) and is used for encoding URL parameters. encodeURI is used for encoding entire URLs while preserving the structure.

Is my data secure?

Yes, all processing happens directly in your browser. Your data is never sent to any server.

URL Examples

Encode Spaces in URLs
Learn how spaces are encoded as %20 in URLs. Essential for query strings and file paths with spaces.
Encode Special URL Characters
Encode ampersand, equals, question mark, and other special characters for safe use in URLs.
Encode Unicode Characters in URLs
URL encode emojis, accented characters, and international text (UTF-8) for web compatibility.
Decode Percent-Encoded URL Parameters
Decode URL-encoded query parameters back to readable text. Convert %20, %26, %3D to original characters.
Encode Email Addresses for URLs
Properly encode email addresses for mailto links and URL parameters. Handles @ symbol and special characters.
Encode JSON for URL Parameters
Encode JSON objects for inclusion in URL query strings. Safely transmit structured data in GET requests.
Encode File Paths for URLs
Encode Windows and Unix file paths for URL parameters. Handle forward slashes, backslashes, and special characters.
Encode Chinese Text for URLs
URL encode Chinese, Japanese, Korean and other CJK characters. Convert non-ASCII text to percent-encoded UTF-8.
Encode Hash Symbols in URLs
Learn when and how to encode hash (#) symbols in URLs. Essential for fragment identifiers and tracking parameters.
Encode OAuth Redirect URIs
Properly encode OAuth callback URLs with query parameters. Critical for authentication flows and redirect handling.
Encode SQL Queries for URL Transmission
Safely encode SQL queries for URL parameters. Handle quotes, operators, and special SQL characters.
Decode a Fully Encoded URL
Decode a complex URL with multiple encoded parameters. See how nested encoding is handled.
Ad Slot