Convert Integers to Unary Base

The Convert Integers to Unary Base tool transforms regular numbers into unary format like 3 becomes |||. It’s a quick way to represent values visually using repeated characters. Works instantly in your browser and supports file import, copy, export, and cleanup options.

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
Ignore non-integers
Remove duplicates
Maximize output

How to Use:

  • Paste or type integers into the input box, one per line.
  • Or import from a supported file using the Choose File button.
  • Use the toggles in the Options box:
    • Ignore non-integers – skips any invalid lines or negative values.
    • Remove duplicates – filters out repeated output lines.
    • Maximize output – expands the output area.
  • Output updates automatically as you type or adjust settings.
  • Click Copy Output to copy the result.
  • Click Export to File to save the unary output as a .txt.
  • Click Clear All to reset everything.

What Convert Integers to Unary Base can do:

This tool converts each integer into a unary string a line of vertical bars equal to the number’s value. For example, 5 becomes ||||| and 0 becomes an empty line. It ignores negative values by default, unless you turn off filtering.

It’s great for symbolic math, visual counting systems, or just messing with alternate number bases. It runs entirely in your browser, fast and private.

Example:

Input:

3
5
apple
0
5

Output (with ignore + dedupe on):

|||
|||||

Common Use Cases:

Perfect for illustrating number representations in education, generating test data for unary-based puzzles, or even visualizing counts without digits. You can paste hundreds of values and get clean, line-by-line unary output in seconds.

Useful Tools & Suggestions:

If you’re using Convert Integers to Unary Base, pair it with Convert Unary Base to Integers to quickly switch back and forth. And if you’re exploring other numeral systems, Convert Integers to Binary Base is a natural next stop.