Mã hóa URL "https://example.com/path?a=1&b=2"

Original

https://example.com/path?a=1&b=2

Đã mã hóa URL

https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1%26b%3D2

"https://example.com/path?a=1&b=2" sau khi mã hóa URL là: https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1%26b%3D2

Ký tự URL phổ biến

CharacterEncodedName
%20dấu cách
/%2Fgạch chéo
?%3Fdấu hỏi
=%3Ddấu bằng
&%26ký hiệu &
@%40ký hiệu @
#%23hash
+%2Bdấu cộng
%%25dấu phần trăm

Cách mã hóa URL hoạt động

Mã hóa URL (percent-encoding) thay thế các ký tự không an toàn bằng % và hai chữ số hex. "https://example.com/path?a=1&b=2" trở thành "https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1%26b%3D2".

Thử công cụ mã hóa URL

Loading tool...