URL encoder and decoder

Encode and decode URLs with batch conversion and live preview

Encoding settings
encodeURIComponent: full encoding (recommended)
encodeURI: partial encoding, preserving URL separators
escape: legacy encoding, for compatibility only
URL input
Conversion result
URI-Comp Encode Characters: 0 Size change: 0%

Converted text will appear here

Features
  • URL encoding (encodeURIComponent)
  • URL decoding (decodeURIComponent)
  • Batch URL processing
  • Live conversion preview
  • Encoding options
  • Saved history
Common character encodings

This table uses encodeURIComponent; other methods may differ.

Character Encode Description
%20 Space
! ! Exclamation mark
# %23 Number sign
$ %24 Dollar sign
% %25 Percent sign
& %26 Ampersand
' ' Single quote
( ( Left parenthesis
) ) Right parenthesis
* * Asterisk
+ %2B Plus sign
, %2C Comma
/ %2F Slash
: %3A Colon
; %3B Semicolon
= %3D Equals sign
? %3F Question mark
@ %40 At sign
[ %5B Left square bracket
] %5D Right square bracket
Sample data

Click a sample to load it

Simple URL
Basic URL encoding example
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3D%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE%26page%3D1
Special characters
Encode special characters in a URL
https%3A%2F%2Fapi.example.com%2Fdata%3Fname%3DJohn%20Doe%26email%3Djohn%40example...
Chinese parameters
A URL containing Chinese text
https%3A%2F%2Fexample.com%2F%E4%BA%A7%E5%93%81%2F%E8%AF%A6%E6%83%85%3Fid%3D123%26name%3D%E7%AC%94%E8%AE%B0%E6%9C%AC%E7%94%B5%E8%84%91
History

No history yet