EditSafely

Perturb Number Digits

Change the digits of the given numbers a little bit.

Runs on your device, nothing uploaded

Max digit delta
The leading digit of each number never changes.
Digits to change per number
0 changes every digit.
Try:

0 chars · 0 lines

Output

Change the digits of the given numbers a little bit.

Type or paste above to see the result here.

Example: Nudge each digit slightly (one possible result)

What you paste never leaves this tab

Perturb Number Digits 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 Perturb Number Digits

  1. 1. Paste your numbers. Enter one number per line into the input pane, the values whose digits you want lightly nudged.
  2. 2. Set the maximum digit change. Enter Max digit delta to control how far each individual digit can shift up or down, keeping the number's overall length unchanged while adding controlled noise. Keep the first digit leaves each leading digit alone; changed digits are highlighted, and Nudge again draws a new variant.
  3. 3. Read the result. Every digit shifts independently by a small random amount within your chosen bound, so the output keeps the same length as the input but with slightly altered digits throughout.
  4. 4. Copy the perturbed numbers. Copy the nudged numbers into a test fixture, fuzzing script or synthetic dataset that needs realistic near-duplicate values.

When to use Perturb Number Digits

Perturb Number Digits nudges each digit of a number by a small random amount, producing values that are close to the original but not identical. Use this tool whenever you need controlled noise at the digit level for testing or synthetic data, rather than an entirely new random number.

  • Generating near-duplicate fraud test cases. A fraud detection model needs training examples of account numbers that are almost but not quite identical to real ones, so perturbing digits by a small delta produces realistic near-matches.
  • Fuzz testing a numeric input parser. A parser that handles user-entered IDs needs slightly malformed but plausible test inputs, so perturbing digits of valid IDs by one or two creates edge cases without breaking the overall format.
  • Creating variation in synthetic training data. A dataset of product codes for a machine learning demo looks too uniform, so perturbing the digits slightly across copies adds realistic variation without changing the overall structure.

Examples

Nudge each digit slightly

Input

1234
5678

One possible result

1134
6768

About the Perturb Number Digits tool

Perturb Number Digits does its work locally, right in the browser. Change the digits of the given numbers a little bit. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the Number Tools collection on EditSafely, a set of 194 small, focused Number utilities that share the same instant, private workspace.

You can shape the output with 3 settings, including Max digit delta, Keep the first digit and Digits to change per number, 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.

Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.

Frequently asked questions

Does Perturb Number Digits 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.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.