Generate Powers of Two

Generate Powers of Two with just a list of numbers. Pop in any exponents integers or not and this tool instantly returns 2 raised to each value. You can import a file, format how results display, and export everything, no reloads needed.

Paste your input above or import a file below.
No file chosen
Supported file types: .txt, .csv, .tsv, .log, .json, .xml, .md, .ini, .yaml, .yml, .html, .htm, .css
Total items: 0
Options
Remove negative inputs
Skip invalid entries
Show exponent with result

How to Use:

  1. Type or paste exponent values into the input box.
  2. Or import a plain-text file using the “Choose File” button.
  3. Flip toggles in the Options section to clean up negatives, skip invalids, or show both exponent and result.
  4. The output updates live complete with a total count.
  5. Copy or export the output with the buttons below.

What Generate Powers of Two can do:

Need to compute 2^x repeatedly? This tool’s got you. It handles negative or fractional inputs (unless you tell it not to), skips junk if you want, and can show results as just the number or as a pair like 5 => 32. You control the formatting and cleanup. Plus, it flashes when updated so you know it worked.

Example:

Input:

0
1
2
3
-1
hello

With Options: Remove negatives ✓, Skip invalid ✓, Show exponent ✓

Output:

0 => 1
1 => 2
2 => 4
3 => 8

Common Use Cases:

Perfect for students working with binary, devs testing exponentiation logic, or anyone needing quick power-of-two results. You can load in a bunch of values, see results in real time, and export cleanly formatted output without any hassle.

Useful Tools & Suggestions:

After lining up powers of two, Convert a Binary Number to Decimal Number helps translate them into something more familiar. And if you want to explore more sequences, Generate a Sequence of Squares is another neat one to compare.