onlineintegertools logo

Integer palindromizer

World's simplest integer tool

This online program creates a palindromic integer from the given integer by symmetrizing its digits and prints the symmetric value in the output. You can switch between three palindrome types in the options and create a mirrored palindrome, a centered palindrome, or a minimal palindrome. Created by math nerds from team Browserling.
announcement a new project!
Super exciting news! We just launched MATHURLS – a fun math news reader. Check it out!
Type of Symmetry
Example: 1232 → 12322321.
Example: 1232 → 1232321.
Example: 1232 → 12321.
Symmetry Explanations
Mirrored type creates symmetry from all integer digits.
Centered type creates symmetry from all integer digits except the last.
Minimal type adds the least number of digits to create symmetry.
Integer palindromizer tool What is a integer palindromizer?
With this browser-based utility, you can convert one or more integers into palindromes. The process of creating an integer palindrome involves adding the right digits at the end of the integer so that it forms mirror-symmetry around its middle point. There are three ways to add digits to an integer to make it palindromic. The first creates a mirror palindrome or so-called copy-reverse palindrome. This algorithm creates a copy of all integer digits, reverses them, and appends them at the end of the original integer. In this case, the size of the integer doubles as each digit on the left side will have a copy on the right side. For example, a copy-reverse palindrome of the integer 258 is 258852. The second type of palindrome is centered (also called anchored). It anchors the last digit of the integer, creates a copy of all the digits before it (that is, it copies all the digits except the last one), reverses them, and appends them at the end of the original value. In this case, all digits on the left side (except the last one) will be duplicated on the right side. An example of anchor symmetry is the value 25852 that is created from the integer 258. The last type of palindrome is minimalistic. It parses the input integer and tries to find the missing symmetry in it by copying digits from the start of the integer and appending them at the end of the integer until possible symmetry forms. For example, given the integer 1232, it's enough to copy the first digit 1 to the end of it and a symmetric value is formed 12321. Integerabulous!
Integer palindromizer examples Click to use
Mirror Symmetry
This example converts five integers to fully-mirrored palindromes. It duplicates all digits and appends them at the end of the integer in reverse order. Mirrored palindromes always consist of an even number of digits because they double the length of each input integer.
1 46 1000 -3777 +56890
11 4664 10000001 -37777773 +5689009865
Required options
These options will be used automatically if you select this example.
Example: 1232 → 12322321.
Anchor Symmetry
This example activates the centered palindrome mode and creates four palindromic integers. This mode slices the integer up to the last digit, creates a reverse copy of the slice, and appends it after the last digit of the integer. This way the central digit is anchored and the length of the palindrome is always an odd value because digits to the left and right always form symmetric pairs and only the central digit doesn't have a pair.
2 34 50005 1,000,000,001
2 343 500050005 1000000001000000001
Required options
These options will be used automatically if you select this example.
Example: 1232 → 1232321.
Create Minimal Palindrome
In this example, we use the "Minimal Palidrome" option to create the shortest possible symmetric integers. In this case, the digits in the input integer are analyzed to find the shortest digital substring at the beginning of the integer that when copied to the end, creates a palindrome. For single-digit integers, this substring is empty as an integer with one digit is already palindromic (see the first integer in the input). For multi-digit integers, the substring has one or more digits but at maximum one less than the length of the integer. In the worst case, the minimal palindrome is equal to the centered palindrome.
3 466 1282 65898 100000000000
3 4664 12821 6589856 1000000000001
Required options
These options will be used automatically if you select this example.
Example: 1232 → 12321.
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/convert-integer-to-palindrome?input=1%0A46%0A1000%0A-3777%0A%2B56890&mirror-numbers=true
All integer tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
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 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 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 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 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 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.
Let Zalgo Destroy Integers
Unleash Zalgo on integers and create integer chaos.
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 Any Base
Quickly convert integers to a custom base.
Convert Integers to Base64
Quickly encode integers to base-64.
Convert Base64 to Integers
Quickly decode base-64 to integers.
Convert Integers to HTML Entities
Quickly encode integers to HTML encoding.
Convert HTML Entities to Integers
Quickly decode HTML entities to 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.
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.
Find the Running Total
Calculate the partial sum of a bunch of integers.
Find the Running Product
Calculate the partial product of a bunch of 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).
Truncate Integers
Drop digits from an integer and make it shorter.
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 Fractions to Integers
Extract the numerator and denominator of a fraction.
Find and Replace Integers
Search for all occurrences of an integer and replace it.
Generate Integers from Regex
Create integers that match the given regular expression.
Create an Integer Array
Generate an array of integers for programming.