Decrement Numbers in Text
Find every number in your text and subtract a fixed amount from each one — adjusting version numbers, indices, or any numeric values in bulk.
What Does This Tool Do?
This tool scans your text, finds every number, and subtracts your specified value from each one. All surrounding text stays unchanged. The reverse of the Increment Numbers tool — useful for downgrading versions, adjusting indices after deletions, or reducing values in bulk.
Key Features
How to Use This Tool
- Paste your text containing numbers.
- Set the decrement value (e.g., 1 to subtract one from each number).
- Click Decrement to update all numbers.
- Copy the result from the Output box.
How It Works
Works identically to Increment Numbers but subtracts the value instead of adding. A regex finds all numbers, each is reduced by the specified amount, and the original is replaced with the new value in the output text.
Common Use Cases
Frequently Asked Questions
Can decrement make numbers negative?
Yes — decrementing below zero produces negative numbers, which is the mathematically correct result.
What if my text has no numbers?
The text is returned unchanged — no numbers means nothing to decrement.
Related Tools
Link to This Tool
Copy and paste the code below to link to this tool from your website: