Mã hóa/Giải mã URL
Mã hóa và giải mã thành phần URL và tham số query string
Client-side only — uses native browser encodeURIComponent / decodeURIComponent (RFC 3986). Your data never leaves the browser.
URL Encoder & Decoder
Encode special characters in URLs (percent-encoding) or decode percent-encoded strings back to readable text. Essential for query parameters, API endpoints, and web scraping.
FAQ
What is URL encoding?
URL encoding replaces unsafe ASCII characters with % followed by two hex digits. A space becomes %20, & becomes %26.
When do I need to URL encode?
When passing special characters in query parameters or form data. Unencoded characters like #, &, and = break the URL.
encodeURI vs encodeURIComponent?
encodeURI encodes a full URL and leaves /, ?, # intact. encodeURIComponent encodes a single value and escapes those characters too — use it for query string values.
Tiếp tục khám phá
Công cụ Công cụ Developer khác bạn có thể thích…
Định dạng JSON
Định dạng, kiểm tra và nén JSON với tô sáng cú pháp và phát hiện lỗi
Mã hóa/Giải mã Base64
Mã hóa văn bản hoặc file sang Base64 và giải mã chuỗi Base64 thành văn bản
Tạo UUID
Tạo UUID ngẫu nhiên (v1, v4) hoặc tạo hàng loạt nhiều UUID cùng lúc
Tạo Hash
Tạo hash MD5, SHA-1, SHA-256, SHA-512 từ văn bản hoặc file
Kiểm tra Regex
Kiểm tra biểu thức chính quy với tô sáng khớp thời gian thực và trích xuất nhóm
Giải mã JWT
Giải mã và kiểm tra JSON Web Token — xem header, payload và xác minh chữ ký
Định dạng HTML
Định dạng và làm đẹp mã HTML với thụt lề đúng và tô sáng cú pháp
Nén CSS
Nén mã CSS để giảm kích thước file bằng cách xóa khoảng trắng và comment