# Integer digit replacer

## World's simplest integer tool

This online utility replaces individual digits in an integer with new values and prints the modified integer to the screen. You can adjust the replacement values for each digit from 0 to 9. The replacement value can be a new digit, a letter, a whole word, and even an emoji. By default, all digits are replaced simultaneously but you can also choose a two-pass mode that replaces already replaced digits the second time. Created by math nerds from team Browserling.

Announcement
Check out our new project!

We just launched a new site – Online GIF Tools – a collection of utilities for quickly editing GIFs. Check it out!

A link to this tool, including input, options and all chained tools.

Can't convert.

Integer digit replacer tool
What is a integer digit replacer?

With this browser-based program, you can replace digits in one or more integers. In the options above, there are ten digit replacement cells, each corresponding to one of the digits from 0 to 9. By entering a character in the cell, the corresponding digit is replaced by this character. For example, you can turn an integer "2822" into a binary value "1011" by replacing the digit 2 with 1 and the digit 8 with 0. You can replace the digits not only with new digits but with any other symbol. For example, you can map digits to letters: 1 to "a", 2 to "b", and 3 to "c", etc. In this case, if your input integer is "123", you will get textual data "abc" in the output. You can also replace digits with different Unicode pseudodigits and create unusual integers such as "𝟙𝟚𝟛" or "①❷⓷". By default, all digits are substituted independently at once and the new values are not substituted another time. You can change this behavior if you enable the recursive "Two-pass Mode" option. When enabled, it performs the digit replacement gradually, allowing repeated character substitutions. For example, if you enter the integer "12" and configure the following replacement mapping: 1 to "2", 2 to "3", then with the two-pass option turned off, you will get the result "23" (instant replacement of all digits), however with the two-pass option turned on, the result will be "33" because the first 1 is replaced by 2, which creates an integer "22", and then 2 is replaced by 3, which creates the integer "33". Integerabulous!

Integer digit replacer examples
Click to use

Hidden Binary Message

In this example, someone sent us a long integer that secretly encodes a binary value in its base-10 digits. The hidden binary value was encoded using the following scheme: the even digits represent binary zeros and the odd digits represent binary ones. In order to decode this value, we replace the digits 02468 with 0 and the digits 13579 with 1. After replacing the digits, we find the secret binary, which turns out to be equal to the 25th Fibonacci value (integer 75025).

38618296148252049

10010010100010001

**Required options**

New value for digit 0.

New value for digit 1.

New value for digit 2.

New value for digit 3.

New value for digit 4.

New value for digit 5.

New value for digit 6.

New value for digit 7.

New value for digit 8.

New value for digit 9.

Allowing new digits to be
replaced the second time.

Grandma's Pancake Recipe

In this example, we decided to rewrite the granny's pancake recipe that was passed down from generation to generation. The original recipe used numerical values for the ingredient amounts but we decided to use words. We entered the word "one" in the replacement field for the digit 1 and the word "two" in the digit 2 field. Thus, in the output, we got an updated recipe with just words.

1 cup all-purpose flour
2 tablespoons white sugar
2 teaspoons baking powder
1 teaspoon salt
1 egg, beaten
1 cup milk
2 tablespoons vegetable oil

one cup all-purpose flour
two tablespoons white sugar
two teaspoons baking powder
one teaspoon salt
one egg, beaten
one cup milk
two tablespoons vegetable oil

**Required options**

New value for digit 0.

New value for digit 1.

New value for digit 2.

New value for digit 3.

New value for digit 4.

New value for digit 5.

New value for digit 6.

New value for digit 7.

New value for digit 8.

New value for digit 9.

Allowing new digits to be
replaced the second time.

Puzzle from Integers

In this example, we create an original numerical puzzle for children. We write down three simple equations with integers in the input and then replace the digits with funny Unicode characters. We replace the integer 2 with an alien emoji 👽, the integer 3 with a ghost emoticon 👻, and the integer 5 with a robot glyph 🤖. In the output, it's difficult to understand which emoji corresponds to which integer, so you need to solve the equations to find it out.

2 + 3 = 5
2 * 5 = 2 + 3 + 5
3 + 5 = 2 + 2 + 2 + 2

👽 + 👻 = 🤖
👽 * 🤖 = 👽 + 👻 + 🤖
👻 + 🤖 = 👽 + 👽 + 👽 + 👽

**Required options**

New value for digit 0.

New value for digit 1.

New value for digit 2.

New value for digit 3.

New value for digit 4.

New value for digit 5.

New value for digit 6.

New value for digit 7.

New value for digit 8.

New value for digit 9.

Allowing new digits to be
replaced the second time.

Two-pass Replacement

In this example, we have enabled the recursive two-pass mode that does a gradual digit replacement. First, we replace all 0s with 1s (intermediate result is 11234), then replace 1s with 2s (intermediate result is 22234), then replace 2s with 3s (intermediate result is 33334), and finally replace the 3s with 4s (final value is 44444).

01234

44444

**Required options**

New value for digit 0.

New value for digit 1.

New value for digit 2.

New value for digit 3.

New value for digit 4.

New value for digit 5.

New value for digit 6.

New value for digit 7.

New value for digit 8.

New value for digit 9.

Allowing new digits to be
replaced the second time.

Pro tips
Master online integer tools

You can pass input to this tool via

__?input__query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlineintegertools.com/replace-integer-digits

__?input__=38618296148252049&new-zero=0&new-one=1&new-two=0&new-three=1&new-four=0&new-five=1&new-six=0&new-seven=1&new-eight=0&new-nine=1&two-pass=false
All integer tools

Quickly rewrite integer digits using pretty Unicode glyphs.

Quickly generate random two-dimensional integer points.

Quickly generate random three-dimensional integer points.

Quickly print a list of integers that are palindromes.

Quickly convert the given integer to a palindromic integer.

Quickly find all integers in the given text or string.

Quickly make integer digits go in a triangle wave.

Quickly unleash the destructive force of Zalgo on integers.

Quickly find two or more integers that add up to the given integer.

Quickly find several integers that multiply up to the given integer.

Quickly randomize the given sequence of integers.

Quickly mix the order of digits in an integer.

Quickly put integers in increasing or decreasing order.

Quickly sort the individual digits of an integer.

Quickly increase all integers by a certain amount.

Quickly increase individual digits by a certain amount.

Quickly decrease all integers by a certain amount.

Quickly decrease individual digits by a certain amount.

Quickly randomly select an integer from a list of integers.

Quickly create groups from the digits of an integer.

Quickly write integer digits backwards.

Quickly remove one or more digits from an integer.

Quickly replace one or more digits in an integer.

Quickly drop digits from an integer and make it shorter.

Quickly add the thousands separator to integers.

Quickly remove the thousands separator from integers.

Quickly find the largest integer in a list of integers.

Quickly find the smallest integer in a list of integers.

Quickly find the total sum of a bunch of integers.

Quickly find the sum of all the digits in an integer.

Quickly find the total product of a bunch of integers.

Quickly find the product of all the digits in an integer.

Quickly calculate the partial sum of a bunch of integers.

Quickly calculate the partial product of a bunch of integers.

Quickly flip the sign of one or more integers.

Quickly split an integer into chunks of a given length.

Quickly merge partial integers together to form a larger integer.

Quickly round integers up or down to the required precision.

Quickly convert integers to a downloadable picture.

Quickly generate a list of von Neumann ordinals.

Quickly generate a list of Zermelo ordinals.

Quickly generate an ordered sequence of integers.

Quickly generate an ordered list of even integers.

Quickly generate an ordered list of odd integers.

Quickly write an integer spelling in words.

Quickly convert spelled integers to regular integers with digits.

Quickly generate an array of integers for programming.

Quickly find the number of occurrences of digits in integers.

Coming soon
These integer tools are on the way

Draw von Neumann Universe

Create a drawing that visualizes von Neumann hierarchy of sets.

Create Integer n-Tuples

Generate a list of tuples of integers with n elements.

Convert Integers to Unary Base

Quickly convert integers to base one.

Convert Unary Base to Integers

Quickly convert base one to integers.

Convert Integers to Binary Base

Quickly convert integers to base two.

Convert Binary Base to Integers

Quickly convert base two to integers.

Convert Integers to Octal Base

Quickly convert integers to base eight.

Convert Octal Base to Integers

Quickly convert base eight to integers.

Convert Integers to Hex Base

Quickly convert integers to base sixteen.

Convert Hex Base to Integers

Quickly convert base sixteen to integers.

Convert Integers to Base64

Quickly encode integers to base-64.

Convert Base64 to Integers

Quickly decode base-64 to integers.

Change Integer Base

Quickly convert integers to a custom base.

Convert Integers to HTML Entities

Quickly encode integers to HTML encoding.

Convert HTML Entities to Integers

Quickly decode HTML entities to integers.

Convert Integers to URL Encoding

Quickly encode integers to URL (percent) encoding.

Convert URL Encoding to Integers

Quickly decode URL-encoded integers.

Create Random Integers

Generate a list of random integers.

Check if an Integer is Symmetric

Check if the given integers are palindromes.

Generate an Integer Matrix

Create a matrix whose entries are all integers.

Generate an Integer Vector

Create a vector with integer coefficients.

Find the Average

Quickly calculate the average value of integers.

Find the Digit Average

Quickly calculate the average value of integer digits.

Clamp Integers

Limit integer values to a range.

Clamp Integer Digits

Limit integer digit values to a range.

Duplicate Integers

Create multiple copies of the input integers.

Rotate Integers

Rotate the digits of an integer to the left or right.

Shift Integer Digits

Move the digits of an integer to the left or right.

Subtract Integers

Quickly find the difference of a bunch of integers.

AND Integers

Quickly apply the bitwise AND operation to integers.

OR Integers

Quickly apply the bitwise OR operation to integers.

XOR Integers

Quickly apply the bitwise XOR operation to integers.

NOT Integers

Quickly apply the bitwise NOT operation to integers.

NAND Integers

Quickly apply the bitwise NAND operation to integers.

NOR Integers

Quickly apply the bitwise NOR operation to integers.

XNOR Integers

Quickly apply the bitwise NXOR operation to integers.

Convert an Integer to Ordinal

Add -st, -nd, -rd, -th suffixes to integers to make them ordinals.

Convert an Oridinal to Integer

Remove -st, -nd, -rd, -th suffixes from ordinals to make them ints.

Filter Integers

Find integers that match a filter (greater, less, equal).

Left-pad Integers

Add padding to integers on the left side.

Right-pad Integers

Add padding to integers on the right side.

Right-align Integers

Position all integers so that they align on the right.

Center Integers

Position all integers so that they align in the middle.

Take Absolute Value of Integers

Turn all integers into positive integers.

Make All Integers Negative

Turn all integers into negative integers.

Convert Integers to Fractions

Rewrite an integer in fractional form.

Convert Fractions to Integers

Extract the numerator and denominator from a fraction.

Find and Replace Integers

Search for all occurrences of an integer and replace it.

Generate Integers from a Regex

Create integers that match the given regular expression.

Generate Small Integers

Create relatively tiny integers.

Generate Big Integers

Create relatively huge integers.

Subscribe!
Never miss an update

Cool!

Notifications
We'll let you know when we add this tool

Cool!