# 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.

A new project!
we made something new

We just created Online GIF Tools that offers tools for working with GIFs. Check it out!

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

Can't convert.

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**

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**

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**

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

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!