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

Máy tính toán bitwise

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

AND/OR/XOR, dịch chuyển, trực quan hóa bit

Xem nhanh kết quả

Bitwise Calculator: AND/OR/XOR, shifts, bit visualization. Bitwise Calculator uses standard developer formulas to compute accurate results instantly.

Hệ cơ số đầu vàoChiều rộng bit hiển thị
A & B
12
Hệ thập phân12
Hex0xC
Binary00001100
A = 00111100
B = 00001101
R = 00001100

Bước tính

  1. 1A = 60 = 00111100(2); B = 13 = 00001101(2)
  2. 2Operation: & — 按位与(两位都 1 才得 1)
  3. 3Kết quả = 12 = 00001100(2) = 0xC
Phép toán bit của JavaScript sẽ chuyển toán hạng thành số nguyên có dấu 32 bit — 64 bit vui lòng dùng BigInt (0n & 1n). Mục đích phổ biến: cờ quyền hạn (1<<n), đóng gói RGB ((r<<16)|(g<<8)|b), trộn băm, dịch chuyển thay cho ×2/÷2. Hoán đổi XOR và ~A = −A−1 là bẫy phỏng vấn kinh điển.

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 Bitwise Calculator 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

  • Bitwise Calculator 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: AND/OR/XOR, shifts, bit visualization.
  • Results come with formulas and reference tables so you can verify every number.

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

Bitwise Calculator formula

Bitwise Calculator uses standard developer formulas to compute accurate results instantly.

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

How do I use the Bitwise Calculator?
Open the page and fill in the input fields — results update automatically. AND/OR/XOR, shifts, bit visualization.
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. Máy tính toán bitwise[EB/OL]. https://www.yijiansuan.com/vi/c/dev/bitwise

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.