Chuyển đến nội dung chính

Bộ mã hóa / giải mã URL

Công cụ cho Nhà phát triển

Thực hiện encodeURI và decodeURI trực tuyến

Xem nhanh kết quả

URL Encoder / Decoder: encodeURI and decodeURI online. URL Encoder / Decoder uses standard developer formulas to compute accurate results instantly.

Hướng:Chế độ:

Nhập

Đầu ra

Sự khác biệt giữa cấp độ thành phần và URL hoàn chỉnh

  1. 1encodeURIComponent thoát tất cả ký tự được giữ lại (: / ? & =) — dùng cho giá trị tham số truy vấn.
  2. 2encodeURI giữ lại ký tự cấu trúc — dùng cho URL hoàn chỉnh.
  3. 3Ví dụ: trong ?q=a&b, giá trị "a&b" phải mã hóa & thành %26, nếu không sẽ bị tách thành hai tham số.
  4. 4Khoảng trắng: chế độ thành phần là %20; gửi biểu mẫu (x-www-form-urlencoded) dùng + thay thế.

Phân loại ký tự RFC 3986

: / ? # [ ] @Reserved (URL structure delimiters)
! $ & ' ( ) * + , ; =Sub-delimiters
A-Z a-z 0-9 - _ . ~Unreserved (never encoded)
Mẹo UTF-8Một ký tự Hán = ba byte UTF-8 = ba %XX

Công cụ này có hữu ích cho bạn không?

Hướng dẫn sử dụng

  1. Paste or type content: drop code/text into the URL Encoder / Decoder or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

Điểm chính

  • URL Encoder / Decoder is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: encodeURI and decodeURI online.
  • Results come with formulas and reference tables so you can verify every number.

Công thức và nguyên lý hoạt động

URL Encoder / Decoder formula

URL Encoder / Decoder uses standard developer formulas to compute accurate results instantly.

Câu hỏi thường gặp

How do I use the URL Encoder / Decoder?
Open the page and fill in the input fields — results update automatically. encodeURI and decodeURI online.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

Công cụ liên quan

Hướng dẫn liên quan

Nguồn và cập nhật

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

Cập nhật gần nhất:

Công thức và nội dung trên trang này đã được đội ngũ YiJianSuan kiểm tra lại, chỉ dùng để tham khảo học tập, các nghiệp vụ thực tế vui lòng tuân theo thông báo chính thức.

Nội dung được đội ngũ biên tập YiJianSuan duy trì và kiểm tra lại định kỳ, quy trình cập nhật và kiểm duyệt xem tạiQuy định biên tập.

Trích dẫn trang này: YiJianSuan. Bộ mã hóa / giải mã URL[EB/OL]. https://www.yijiansuan.com/vi/c/dev/url-codec

Kết quả do công cụ này cung cấp chỉ mang tính tham khảo, không cấu thành bất kỳ lời khuyên chuyên nghiệp nào, vui lòng dựa trên kết quả tính toán chính thức.