URL Encoder/Decoder

Encode and decode URLs with multiple encoding methods and formats

Back to Tools

Operation

URL Components Analyzer

URL Encoding Reference

Percent Encoding

Char
Encoded
Description
Space
%20
Space character
!
%21
Exclamation mark
"
%22
Quotation mark
#
%23
Hash/Fragment
$
%24
Dollar sign
%
%25
Percent sign
&
%26
Ampersand
+
%2B
Plus sign

URL Parts

  • Protocol: http:// or https://
  • Domain: example.com
  • Port: :8080 (optional)
  • Path: /path/to/resource
  • Query: ?param=value&key=data
  • Fragment: #section

Reserved Characters

General delimiters:
: / ? # [ ] @

Sub-delimiters:
! $ & ' ( ) * + , ; =

Unreserved:
A-Z a-z 0-9 - . _ ~

URL Encoding Guidelines

Security

  • Always encode user input in URLs
  • Validate decoded URLs before use
  • Be aware of double-encoding issues
  • Use appropriate encoding for context

Compatibility

  • Use UTF-8 encoding for international characters
  • Test URLs across different browsers
  • Consider mobile and legacy systems
  • Follow RFC 3986 standards

Best Practices

  • Use rawurlencode for path components
  • Use urlencode for query parameters
  • Keep URLs as short as possible
  • Use meaningful parameter names