URL Encoder/Decoder

Encode or decode URL strings and special characters

Input

Standard: Preserves /:?&= | Plus: Space → + | Component: Encodes everything

Result

Enter a URL or text to encode/decode

Quick Examples

URL Encoding Reference

CharacterEncodedDescription
%20Space
!%21Exclamation mark
#%23Hash
$%24Dollar sign
%%25Percent
&%26Ampersand
'%27Single quote
(%28Left parenthesis
)%29Right parenthesis
*%2AAsterisk
+%2BPlus sign
,%2CComma
/%2FForward slash
:%3AColon
;%3BSemicolon
=%3DEquals sign
?%3FQuestion mark
@%40At sign
[%5BLeft bracket
]%5DRight bracket

What is URL Encoding?

URL encoding, also known as percent-encoding, is a mechanism for encoding information in a Uniform Resource Identifier (URI). It converts characters that are not allowed in URLs or have special meaning into a format that can be safely transmitted. The encoding replaces unsafe characters with a "%" followed by two hexadecimal digits representing the character's ASCII code.

How to Use This Tool

  1. Select Mode - Choose "Encode" to convert text to URL-safe format, or "Decode" to convert back.
  2. Enter Text - Type or paste your URL or text in the input field.
  3. Choose Encoding Type - Select Standard, Plus, or Component mode based on your needs.
  4. Click Convert - Press the button to encode or decode your text.
  5. Copy Result - Click "Copy" to copy the result to your clipboard.

Encoding Modes Explained

Standard

Preserves URL-safe characters like /, :, ?, &, =. Best for encoding full URLs.

Plus (+)

Encodes spaces as + instead of %20. Common in form data (application/x-www-form-urlencoded).

Component

Encodes everything except alphanumeric characters. Use for query parameter values.

Why URL Encoding Matters

  • Data Integrity - Ensures special characters don't break URLs or cause security issues.
  • Universal Compatibility - Makes URLs work across all browsers and servers.
  • API Requests - Required when sending data through query strings.
  • Form Submissions - HTML forms automatically encode data for transmission.
  • Security - Prevents injection attacks and URL manipulation.

FAQ

Why are spaces encoded as %20 or +?

%20 is the standard encoding, while + is used specifically in query strings (form data). Both represent a space character.

Do I need to encode the entire URL?

Usually only query parameters need encoding. The URL path can use standard encoding which preserves /, :, and other URL-safe characters.

What happens if I double-encode a URL?

Double encoding converts % to %25, which can cause issues. For example, %20 becomes %2520. Always decode before re-encoding.