Rewrite an Integer as a Product

Rewrite an Integer as a Product takes any list of integers and converts each one into a multiplication of its prime factors. Want to turn 84 into 2 × 2 × 3 × 7? Or maybe into 2² × 3 × 7 with clean exponents? This tool does it instantly with formatting options, symbol styles, and real-time updates.

You can paste your numbers in or import a file, tweak your settings, and get output that flashes into view with every change. It all happens entirely in your browser. No data leaves your device and it’s super fast.

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 lines: 0
Options
Show exponents
Maximize output

How to Use:

  • Paste or type your numbers into the Input Integers box.
  • Or use the Choose File button to upload a .txt, .csv, or other plain-text file.
  • Select the product symbol format:
    • × (default), * (asterisk), or · (middle dot)
  • Toggle Show exponents to format like instead of repeating 2 × 2.
  • Use Maximize output to expand the result area.
  • The output updates live no clicking required.
  • Click Copy Output to copy all the results.
  • Click Export to File to save your product breakdown.
  • Click Clear All to reset everything.

What Rewrite an Integer as a Product can do:

  • Factor each number into its prime components.
  • Display results with or without exponent notation.
  • Let you pick your preferred multiplication symbol (×, *, or ·).
  • Show live, flashing output that updates as you type or change settings.
  • Accept pasted values or safely import text files.
  • Fully browser-based no uploads, no data loss.
  • Export or copy the results instantly.
  • Show a total line counter below the output.

Example:

Input:

12
45
84
-18

Symbol: ×Exponents: on

Output:

2^2 × 3
3 × 3 × 5
2^2 × 3 × 7
-1 × 2 × 3^2

Common Use Cases:

Use this tool when you want to break numbers down into their prime building blocks. It’s perfect for teachers, students, math geeks, or developers needing factored input. Whether you’re building quizzes, processing logs, or just satisfying your curiosity this tool keeps it clean, simple, and instant.

Useful Tools & Suggestions:

After running Rewrite an Integer as a Product, try Calculate Prime Factors to break it into its most basic multiplicative pieces. You can also use Multiply Integer Digits if you’re curious how digit-level multiplication compares to the full decomposition.