Decrement Integer Digits Online
Decrease each individual digit of an integer by a specified amount. Choose to wrap around (9→0) or clamp at 0.
| Original | Result |
|---|
Drop a number in, pick how much to shave off each digit, and you're done. Good for simple digit shifts, quick cipher-style tricks, or nudging test data down a notch — with wrap-around if you want 0 to loop back to 9, or clamping if you'd rather it stop there. And everything runs in your browser. Nothing gets uploaded.
How It Works
Each digit of the input number is decremented individually. In wrap mode, if a digit goes below 0, it wraps around (e.g., 0-1=9). In clamp mode, digits stay at 0 if they would go below it. Non-digit characters (like negative signs) are preserved.