Text with duplicate numbers

Result

How does it work?

This tool finds duplicate numbers in your text and increments each occurrence after the first. It's useful for:

  • Making duplicate identifiers unique
  • Creating sequential versions from repeated numbers
  • Fixing duplicate numbering in documents
  • Creating test data with incremented duplicates

You can specify how much to increment by using the "Increment by" field. The default is 1.

Example

Original text

Item 5, Item 5, Item 5, Item 5
Price: $10.50, $10.50, $10.50
Version 2.0, Version 2.0, Version 3.0, Version 3.0
Room 101, Room 102, Room 101, Room 102

After incrementing duplicates (by 1)

Item 5, Item 6, Item 7, Item 8
Price: $10.50, $11.5, $12.5
Version 2.0, Version 3, Version 3.0, Version 4
Room 101, Room 102, Room 102, Room 103

The tool works with:

  • Integers (e.g., 5, 6, 7...)
  • Decimal numbers (e.g., 10.5, 11.5, 12.5...)
  • Negative numbers

How duplicate incrementing works:

  1. The first occurrence of each unique number is kept as is
  2. The second occurrence becomes: original number + increment value
  3. The third occurrence becomes: original number + (2 × increment value)
  4. And so on...

Note: Numbers are considered duplicates only if they are exactly the same. For example, "5" and "5.0" are treated as different numbers.

Related Tools

All Tools

See all available tools