Color Integers
Color each integer by its sign: negative, positive or zero. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Color each integer by its sign: negative, positive or zero.
Type or paste above to see the result here.
What you paste never leaves this tab
Color Integers is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, whatever you type in is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Color Integers
- 1. Paste the integers. Enter a list of integers separated by spaces, commas or newlines. Both positive and negative values, along with zero, are supported.
- 2. See each integer colored by sign. Positive integers turn blue with ▲, negatives orange with ▼ and zero grey, colours that colour-blind readers can tell apart; the markers keep it readable without colour. Switch Colour by to Even or odd for parity. The counts appear under the result.
- 3. Review the colored output. Scan the rendered colors in the output panel to see the sign distribution across your list. Copy keeps the colours when you paste into a document or email; Download saves an HTML file with the same colours.
When to use Color Integers
Color Integers renders a list of whole numbers with color coding by sign, orange for negative, blue for positive and grey for zero. Color Integers turns a column of mixed-sign values into something you can read visually rather than number by number.
- Reviewing a list of profit and loss figures. A quarterly report lists gains and losses as plain integers like -3 0 7 -12 5. Coloring them by sign makes the overall trend visible instantly, without scanning for minus signs.
- Presenting balance changes in a talk or demo. Explaining how a running total moves up and down is clearer when the audience can see the rises and falls in colour rather than reading a plain list of numbers.
- Spotting an unexpected zero in a dataset. A batch of transaction amounts should never include a zero value if the data pipeline is working correctly. Coloring the list makes a stray zero stand out in gray immediately.
- Reviewing test output with mixed deltas. A test suite reports numeric differences between expected and actual values. Coloring the deltas by sign highlights which cases came in too low or too high at a glance.
Examples
Color by sign
Input
-3 0 7 -12 5
Output
Negatives turn orange with ▼, positives blue with ▲, zero grey.
About the Color Integers tool
Color Integers runs as plain JavaScript in your browser tab, with no server behind it. Color each integer by its sign: negative, positive or zero. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's Integer Tools section, 133 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
You can shape the output with 2 settings, including Colour by and Add ▲ ▼ markers (readable without colour), and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Does Color Integers cost anything?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
Can I save what the tool produces?
Yes. Use the download or copy controls in the output panel to keep the rendered result once it looks the way you want.