Reverse & Mirror

Reverse Numbers

Reverse Numbers reverses each consecutive run of digits while leaving surrounding words untouched.

Try reverse numbers

Paste or type text below. The result updates in your browser.

Example: reverse numbers

Input
Order 1234
Illustrative result
Order 4321

How to use this tool

  1. Enter text containing one or more digit runs.
  2. Run Reverse Numbers and check each run separately.
  3. Confirm punctuation, signs, and decimal formatting still mean what you intend.

How the result is made

The tool searches for ASCII digit runs and reverses each one independently. “Order 1234” becomes “Order 4321”. A space, letter, sign, decimal point, or comma ends one run and starts another. The rest of the input remains in its original order, including line breaks.

When to use it

Use it for numeric puzzles, visual checks, or reversing an identifier segment inside mixed text. It is narrower than Reverse Text, which would also reverse letters, and different from Reverse Lines, which moves whole lines. The transformation does not perform any arithmetic or number-base conversion.

Details to check

A negative sign stays in front of the same digit run, while “12.34” becomes “21.43” rather than a reversal of the whole decimal token. Non-ASCII numerals are not matched by the `\d+` rule. Inspect identifiers and formatted numbers before copying.

Questions people ask

Does it reverse the whole sentence?

No. It only changes consecutive ASCII digits.

Will a decimal reverse as one number?

No. The decimal point separates two digit runs.

Is this a calculation?

No. It rearranges characters without changing numeric value mathematically.