Power of two checker
ClientSee if n equals 2^k—handy for buffer sizes and bit masks.
About Power of two checker
Test whether a whole number equals 2^k—bit-friendly sizes, computed in your browser. The interactive transform on this page runs in your browser tab—Toolcore does not need your paste for the core operation described above.
How to use this page
Paste or type in the main workspace, run the primary action from the toolbar, then copy or download the result. Use Load example when the page offers it, or URL prefill (?q= / ?qb=) so agents and tickets open the same input.
16 is a power of two (2^4)
Nearby workflows on Toolcore
- Integer base converter — Whole numbers in radices 2–36: binary, octal, decimal, hex (optional 0x), custom bases; BigInt-sized strings, local only. when units or numeric output should be checked on a related calculator.
- Digit sum — Sum the decimal digits of a whole number—local arithmetic for puzzles and divisibility checks. when units or numeric output should be checked on a related calculator.
- Modulo calculator — Integer remainder and truncated quotient (a mod b)—BigInt math in your browser. when units or numeric output should be checked on a related calculator.
- Prime number checker — Test whether a whole number is prime—BigInt trial division in your browser, no upload. when units or numeric output should be checked on a related calculator.
Common use cases
- Validate allocation sizes are powers of two.
- Teaching binary exponent patterns.
Common mistakes to avoid
Treating 0 as a power of two
This tool reports 0 as not a power of two.
FAQ
Is 1 a power of two?
Yes—2⁰ = 1.
Is data uploaded?
No.
More tools
Related utilities you can open in another tab—mostly client-side.
Integer base converter
ClientWhole numbers in radices 2–36: binary, octal, decimal, hex (optional 0x), custom bases; BigInt-sized strings, local only.
Digit sum
ClientSum the decimal digits of a whole number—local arithmetic for puzzles and divisibility checks.
Modulo calculator
ClientInteger remainder and truncated quotient (a mod b)—BigInt math in your browser.
Prime number checker
ClientTest whether a whole number is prime—BigInt trial division in your browser, no upload.