Skip to main content
glyph.sh
Type a command…⌘K

URL Encoder/Decoder

Encode and decode URLs for safe transmission

Encode and decode URLs to ensure special characters are properly formatted for web transmission. All processing happens in your browser.

Input

Enter URL or text with special characters to encode/decode

Output

Statistics

Input Length:0
Output Length:0
Characters Encoded:0
Percent Signs (%):0

Common URL Encodings

CharacterURL EncodedUsage
(space)%20 or +Spaces in URLs
&%26Query parameter separator
=%3DKey-value separator
?%3FQuery string start
#%23Fragment identifier
%%25Escape character
/%2FPath separator
:%3AProtocol/port separator
@%40User info separator
+%2BPlus sign (or space in query)

When to Use Each Mode

URL Component Mode

  • Best for query parameter values
  • Encodes all special characters including / ? &
  • Use when encoding part of a URL
  • Example: encodeURIComponent("hello world")

Full URL Mode

  • Best for complete URLs
  • Preserves URL structure (://?&=)
  • Use when encoding entire URL strings
  • Example: encodeURI("https://example.com")