Encode Negative Binary Online
Encode decimal numbers to negabinary (base -2) representation online.
Punch in a decimal number and get its negabinary form — base -2, which handles negatives without any sign bit. Handy for CS homework, curious math experiments, or just seeing how numbers bend in a weird base. And everything runs in your browser. Nothing gets uploaded.
How to Use
Enter decimal numbers in the left panel, one per line.
Click Convert or use Live mode.
Copy or Download the negabinary result.
Frequently Asked Questions
What is negabinary?
Negabinary (base -2) represents integers using only 0 and 1, but with base -2 instead of base 2. It can encode both positive and negative numbers without a sign.
How does encoding work?
The number is repeatedly divided by -2 and remainders (always 0 or 1) form the negabinary digits.
Can it handle negative numbers?
Yes. Negabinary naturally represents negative numbers without needing a sign bit.
What input is valid?
Any integer (positive, negative, or zero).
Is my data safe?
Yes. All processing happens in your browser.