🔗

URL Encoder/Decoder

Encode and decode URLs, query parameters, and URI components

Input

Characters: 0 Enter text

Encoding Options

Output

Length: 0

URL Analysis

Protocol: -
Host: -
Port: -
Path: -
Query: -
Fragment: -

Query Parameters

No query parameters found

Built URL

Batch Processing

Results

Enter URLs and click "Process All" to see results

Quick Actions

About URL Encoding

URL encoding (also known as percent encoding) is a mechanism to encode information in a Uniform Resource Identifier (URI) under certain circumstances. It converts characters into a format that can be transmitted over the Internet.

Encoding Rules

  • Reserved Characters: : / ? # [ ] @ ! $ & ' ( ) * + , ; =
  • Unsafe Characters: Space, ", <, >, #, %, {, }, |, \, ^, ~, [, ], `
  • Encoding Format: % followed by two hexadecimal digits
  • Space Encoding: Can be %20 or + (in query strings)

Common Character Encodings

Space → %20 or +
! → %21
" → %22
# → %23
$ → %24
% → %25
& → %26
' → %27
( → %28
) → %29
+ → %2B
, → %2C

URL Components

https://example.com:8080/path/to/resource?param1=value1¶m2=value2#section
  • Protocol: https://
  • Host: example.com
  • Port: :8080
  • Path: /path/to/resource
  • Query: ?param1=value1¶m2=value2
  • Fragment: #section

When to Use URL Encoding

  • Form Data: When submitting forms with special characters
  • Query Parameters: For search terms and filter values
  • API Requests: When passing data in URL parameters
  • File Names: For files with spaces or special characters
  • Internationalization: For non-ASCII characters in URLs