Number Tools

Five powerful number utilities — percentages, random numbers, base conversions, Roman numerals, and number properties. All instant, all private, all free.

Quick %

What is X% of Y?

What is % of =

X is what % of Y?

is what % of =

Percentage Change

From to =

Find Original Value (Reverse %)

Value is now after a % → original =

Percentage Difference Between X and Y

Between and =
X% of Y = (X ÷ 100) × Y
% of Total = (X ÷ Y) × 100
% Change = ((New − Old) ÷ |Old|) × 100
Reverse % = Current ÷ (1 ± Rate÷100)
% Difference = |X−Y| ÷ ((X+Y)÷2) × 100

Generate Random Numbers

Click "Generate" to create random numbers

Convert Between Number Bases

Decimal (Base 10)
Binary (Base 2)
Hexadecimal (Base 16)
Octal (Base 8)

Integer to Roman

Roman to Integer

Quick Reference

I = 1 V = 5 X = 10 L = 50 C = 100 D = 500 M = 1000

Analyze a Number

Your privacy matters. All processing happens locally in your browser. No data is uploaded to any server.

How to Use Number Tools

1

Pick a Tool

Choose from 5 tabs: Percentage (5 modes), Random/Dice, Base Converter, Roman Numerals, or Number Properties.

2

Enter Your Values

Type your numbers. Percentage and Properties tools update instantly as you type. Random tools use a Generate or Roll button.

3

Share or Copy Results

Use the Share button to copy a URL that restores your exact inputs. Copy individual results or the full report. All runs locally.

Frequently Asked Questions

What's the difference between percentage change and percentage difference?

Percentage change is directional — it measures how much one value changed relative to the original. Percentage difference is symmetric — it measures the difference relative to the average of the two values, with no "before" or "after." Use % change for before/after comparisons (price changes, growth rates) and % difference when comparing two equal peers.

How does the random number generator work?

It uses the browser's built-in Math.random() function, which produces cryptographically unpredictable results in modern browsers. When "Unique only" is selected, a Fisher-Yates shuffle algorithm ensures no duplicates. All numbers are generated entirely on your device — nothing is sent to a server.

How fair are the dice rolls?

The dice roller uses Math.random() which produces a uniform distribution over [0, 1). Each die face has exactly equal probability. Over many rolls, results converge to the expected distribution. It's as fair as any physical die — the expected average for a d6 is 3.5.

What number bases are supported in the converter?

The base converter supports Decimal (10), Binary (2), Hexadecimal (16), Octal (8), and any Custom Base from 2 to 36. For bases above 10, it uses digits 0–9 plus letters A–Z. Enter a number in any base and see all conversions simultaneously. Binary output also shows nibble (4-bit) grouping and bit-length classification.

What is the valid range for Roman numerals?

Standard Roman numerals represent integers from 1 to 3,999 (I to MMMCMXCIX). Numbers outside this range cannot be expressed with the traditional seven symbols. The Year Mode is a convenient way to convert historical dates and copyright years directly.

How does the Number Properties tool determine if a number is prime?

It uses trial division up to √n. For any composite number n, at least one factor must be ≤ √n, so checking up to that point is sufficient. For numbers up to 10,000,000, this requires at most ~3,162 division operations — nearly instant in JavaScript.

What does "abundant" vs "deficient" mean?

These classify a number by the sum of its proper divisors (all divisors excluding the number itself). A number is abundant if the sum exceeds it (e.g., 12: 1+2+3+4+6=16 > 12), deficient if the sum is less (e.g., 9: 1+3=4 < 9), and perfect if the sum exactly equals it (e.g., 6: 1+2+3=6). About 75% of all integers are deficient.

Can I share my calculation with someone?

Yes! Click the "Share" button on any tab. This copies a URL that encodes all your current inputs. When someone opens the link, the tool restores exactly the same values so they can see your calculation. Your inputs are also automatically saved to localStorage so they persist across page reloads.

Is my data sent anywhere?

No. All calculations run 100% in your browser using JavaScript. Nothing is uploaded to a server. You can even use most features offline after the page loads (only Chart.js loads from a CDN on first visit).

Real-World Examples

Percentage

Restaurant Tip

Bill is $84. What is an 18% tip? Use "X% of Y": (18 ÷ 100) × 84 = $15.12

Reverse %

Pre-Sale Price

Item now costs $68 after a 15% discount. What was the original? → $68 ÷ (1 − 0.15) = $80

Random

Lottery Draw

Pick 6 unique numbers from 1–49. Use the Numbers generator with Unique mode, min=1, max=49, count=6.

Dice

D&D Damage Roll

Roll 2d6 + 3 for a sword attack. Select d6, set 2 dice and +3 modifier. Results animate individually.

Base

CSS Hex Color

Color #FF8C00 = 255, 140, 0 in decimal. Enter FF in Hex mode → Decimal = 255.

Properties

Why 360°?

Enter 360 in Number Properties. It has 24 divisors — more than almost any number in its range, making it ideal for angles.

Key Terms

Prime Number
A number greater than 1 divisible only by 1 and itself. E.g., 2, 3, 5, 7, 11.
GCD
Greatest Common Divisor — the largest integer that divides two numbers exactly. GCD(48, 18) = 6.
LCM
Least Common Multiple — the smallest positive integer divisible by both numbers. LCM(4, 6) = 12.
Fibonacci Number
A number in the sequence 1, 1, 2, 3, 5, 8, 13… where each term is the sum of the two preceding terms.
Perfect Number
A number equal to the sum of its proper divisors. E.g., 6 = 1 + 2 + 3. The next is 28.
Binary (Base 2)
Number system using only 0 and 1. 255 in decimal = 11111111 in binary. Foundation of all digital computing.
% Change vs % Difference
% Change is directional (old→new). % Difference is symmetric — neither value is the "base."
Abundant / Deficient
Abundant: divisor sum > n (e.g., 12). Deficient: divisor sum < n (e.g., 9). Perfect: divisor sum = n.