What is URL Encoder / Decoder?
URL Encoder / Decoder converts text to and from URL-safe formats. It supports three encoding modes: Component (encodeURIComponent), Full URL (encodeURI), and Base64URL.
How to use
- Choose an encoding mode: Component, Full URL, or Base64URL
- Select Encode or Decode
- Paste or type your text
- The result updates in real time
- Use the Swap button to reverse input/output
Encoding modes
- Component — Uses
encodeURIComponent/decodeURIComponent. Encodes all special characters including/ ? & =. Use this for query parameter values. - Full URL — Uses
encodeURI/decodeURI. Preserves URL structure characters like://,/,?,&. Use this for complete URLs with spaces or Unicode. - Base64URL — Encodes text to URL-safe Base64 (RFC 4648 §5). Uses
-and_instead of+and/, no padding. Common in JWTs and API tokens.
Common use cases
- Encoding query parameters with special characters
- Making URLs safe for sharing (spaces, emoji, non-ASCII characters)
- Decoding percent-encoded URLs from logs or analytics
- Working with JWT tokens (Base64URL segments)
- Debugging API requests with encoded parameters
Limitations
- Maximum input: 500,000 characters
- Text-only (no file upload)
- Does not parse or validate full URL structure