🏠
Home
All tools & converters
Images
🖼️
Image Converter
JPG, PNG, WebP, AVIF & more
Video
🎬
Video Converter
MP4, WebM, AVI, MOV & more
Documents
📄
Document Converter
PDF, DOCX, XLSX, PPTX & more
Audio
🎵
Audio Converter
MP3, WAV, FLAC, AAC & more
Tools
🔲
QR Code Generator
Generate QR codes
🔑
Password Generator
Secure random passwords
🎨
Color Picker
HEX, RGB, HSL converter
📊
Word Counter
Count words & characters
JSON Formatter
Prettify & validate JSON
🔑
Hash Generator
MD5, SHA-256 & more
🔤
Base64 Encoder
Encode & decode Base64
🔗
URL Encoder
Encode & decode URLs
🔤
Case Converter
UPPER, lower, Title Case
📝
Lorem Ipsum
Placeholder text generator
More
📖
Blog
Tutorials & guides
ℹ️
About
About this site
✉️
Contact
Get in touch
Developer Tool · Instant · Free

URL Encoder.
Encode & Decode.

Encode special characters in URLs or decode percent-encoded strings. Everything runs instantly in your browser.

URL Encoder / Decoder

0 characters
0 characters
🔗
URL Encoding
Convert special characters to percent-encoded format for safe URLs.
Instant
Results appear immediately. Both encodeURI and encodeURIComponent.
🔒
Private
Nothing leaves your browser. No server processing.

How to Encode or Decode URLs

1
Enter your text or URL

Paste a URL with special characters, or encoded text with percent-encoded sequences like %20 or %3D.

2
Choose encode or decode

Click Encode to convert special characters to percent-encoded format, or Decode to convert them back to readable text.

3
Copy the result

The converted text appears instantly. Click Copy to use it in your application.

What Is URL Encoding?

URL encoding (also called percent-encoding) converts characters not allowed in URLs into a safe format using percent signs followed by hexadecimal digits. URLs can only contain a limited ASCII character set. Spaces become %20, ampersands become %26, and non-English characters are encoded as UTF-8 byte sequences. URL encoding is essential for web development because unencoded special characters can break URL parsing or cause security vulnerabilities.

When Do You Need URL Encoding?

Web developers encode query parameters containing user input to prevent broken URL structure. API developers encode parameters in REST endpoints with special characters. SEO professionals decode URLs from analytics tools to read actual page paths. Email marketers encode tracking parameters in campaign URLs. International websites encode non-Latin characters in URLs for proper browser handling.

Frequently Asked Questions

What characters need to be URL encoded?

Spaces, non-ASCII characters, and reserved characters like &, =, #, ?, / must be encoded when used as data within URL components.

What is the difference between encodeURI and encodeURIComponent?

encodeURI preserves URL-special characters (/, ?, &). encodeURIComponent encodes everything — use it for individual parameter values.

Why do spaces sometimes appear as + and sometimes as %20?

In query strings, spaces can be + or %20. In the URL path, only %20 is valid. Our tool uses %20 for universal compatibility.

Is my data safe?

Yes. All encoding and decoding happens locally in your browser.