URL Encoder & Decoder
Encode text for safe use in URLs or decode percent-encoded strings. Includes a URL parser to break down any URL into its components.
Common URL Encodings
How to Use This URL Encoder/Decoder
- Choose Encode or Decode mode
- Select Component (encodes all special characters) or Full URI (preserves URL structure)
- Type or paste your text — the result appears instantly
- Use the swap button to reverse the operation
Component vs Full URI
- Component (encodeURIComponent) — Encodes everything except
A-Z a-z 0-9 - _ . ~ ! * ' ( ). Best for encoding query parameter values. - Full URI (encodeURI) — Preserves URL structure characters like
: / ? # [ ] @ ! $ & + , ; =. Best for encoding complete URLs.
Frequently Asked Questions
Is my data safe?
Yes. All encoding and decoding is done in your browser. No data is sent to any server.
When should I URL-encode text?
URL-encode any text that contains special characters before using it in a URL, especially in query parameters. For example, spaces become %20 and ampersands become %26.
What is percent encoding?
Percent encoding (also called URL encoding) replaces unsafe characters with a % followed by two hexadecimal digits representing the character's byte value in UTF-8.
Related Tools
All ToolsBase64 Encoder & Decoder
Encode UTF-8 text to Base64 or decode it back to text in your browser.
Slug Generator
Turn Latin-script titles into URL slugs with separator and case options; review non-Latin text manually.
QR Code Generator
Create QR codes for URLs, text, Wi-Fi and email, then download PNG or SVG output.
Meta Tag Generator
Build title, description, Open Graph and Twitter Card tags with illustrative previews.