Mã hóa và giải mã percent cho URL và thành phần URL, an toàn UTF-8.
Cách dùng Mã hóa URL
Dán văn bản hoặc URL của bạn.
Chọn mã hóa hoặc giải mã, và phạm vi thành phần hoặc URL đầy đủ.
Sao chép kết quả.
URLs are only allowed to contain a limited set of characters, so anything outside that set, spaces, accented letters, and reserved symbols like & ? / =, has to be escaped. Percent-encoding replaces each such byte with a percent sign and its two-digit hexadecimal value, so a space becomes %20 and an ampersand becomes %26.
This tool encodes text and URLs to percent-encoded form and decodes them back. It is built on the browser's standard encodeURIComponent and encodeURI functions, so the output matches exactly what your own JavaScript would produce, and it is UTF-8 safe for international text.
Encoding and decoding run entirely in your browser, so nothing you paste is sent to a server, which is reassuring when a URL contains tokens or query parameters you would rather not share.
The scope toggle matters. Component mode (encodeURIComponent) escapes reserved characters like & = ? / and is what you want for a single query-string value or path segment. Full-URL mode (encodeURI) leaves the structural characters intact so a complete URL stays usable.
A common mistake is encoding an entire URL with component mode, which escapes the :// and ? and breaks the link. Another is double-encoding, where an already-encoded string is encoded again and %20 turns into %2520. When in doubt, decode first to see the raw value.
There is also a historical quirk in query strings: form submissions encode a space as a plus sign, while percent-encoding uses %20. Both are seen in the wild, so decoders generally accept either.
Câu hỏi thường gặp
'Thành phần' (encodeURIComponent) thoát các ký tự dành riêng như & = ? / cho giá trị truy vấn. 'URL đầy đủ' (encodeURI) giữ nguyên cấu trúc URL.
Các chuỗi percent sai định dạng (như một dấu % đơn lẻ) không thể giải mã. Hãy kiểm tra dữ liệu nhập hoặc mã hóa lại trước.
Nhúng công cụ này
Thêm công cụ này vào trang web của riêng bạn. Sao chép đoạn mã bên dưới; nó tự động cập nhật.
<iframe src="https://monu.tools/embed/vi/url-encoder" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Công cụ liên quan
Mã hóa văn bản sang Base64 hoặc giải mã Base64 về văn bản. An toàn UTF-8 với tự động nhận diện hướng.
Giải mã JSON Web Token để kiểm tra header và payload của nó, với thời gian hết hạn và thời gian phát hành dễ đọc. Chạy hoàn toàn trong trình duyệt của bạn; token không bao giờ được tải lên.
Tạo mã băm SHA-1, SHA-256, SHA-384 và SHA-512 cho bất kỳ văn bản nào, ngay trong trình duyệt của bạn.
Tạo một HMAC cho một thông điệp và khóa secret bằng SHA-1, SHA-256, SHA-384 hoặc SHA-512, trong trình duyệt của bạn.