Loading...

URL Encoder/Decoder

Encode and decode URLs with support for full URLs and components, plus advanced web encoding features

URL Processing

Choose your operation mode and encoding type

Input URL

0 chars
Characters: 0
Lines: 1
Bytes: 0

Encoded Result

About URL Encoding

URL encoding, also known as percent-encoding, converts special characters into a format that can be safely transmitted over the internet. It's essential for handling URLs with spaces, special characters, or non-ASCII characters.

Common Examples

Space Character
Original:hello world
Encoded:hello%20world

Spaces are encoded as %20

Special Characters
Original:name=John&age=30
Encoded:name%3DJohn%26age%3D30

& and = are encoded for URL parameters

Unicode Characters
Original:café
Encoded:caf%C3%A9

Unicode characters are UTF-8 encoded

Query Parameters
Original:search?q=hello+world&lang=en
Encoded:search%3Fq%3Dhello%2Bworld%26lang%3Den

Query string characters are encoded

Encoding Types

Full URL Encoding

Uses encodeURI() - preserves URL structure characters like :, /, ?, #

https://example.com/search?q=hello world
→ https://example.com/search?q=hello%20world

Component Encoding

Uses encodeURIComponent() - encodes all special characters including URL structure

hello world&key=value
→ hello%20world%26key%3Dvalue

When to Use URL Encoding

Essential for:
  • • Query parameters with special characters
  • • Form data submission
  • • API requests with dynamic content
  • • File names in URLs
Common Characters:
  • • Space → %20
  • • & → %26
  • • = → %3D
  • • # → %23