# Integer sign changer

## World's simplest integer tool

This browser-based utility changes the sign of one or more integers and prints them in the output. By default, it flips the sign of each integer to the opposite sign but you can also convert all integers to be positive or negative. The positive values and zero does not use the sign character but with the "Force Sign" option, you can force the "+" sign in front of these values. Created by math nerds from team Browserling.

Look what we made!
Browserling

Check out our project Browserling – your personal cloud browser.

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

Can't convert.

Integer sign changer tool
What is a integer sign changer?

With this online application, you can invert the sign in front of all integers that are listed in a vertical column in the input. If the integer is negative, then it becomes positive, and if the integer is positive, it becomes negative. The value 0, in this case, does not change the sign because it's neither positive nor negative. This is the app's default behavior. We have also added two extra sign modes to this program. The "Minus Sign" mode makes every value in the output negative, regardless of the sign in the input. The "Plus Sign" mode takes the absolute value of every integer and returns all values as positive integers. By default, positive integers do not use a sign but you can add the "+" sign in front of them by activating the "Force Sign" option. It also adds a "+" or "-" before a zero. If the input integer is +0, then it becomes -0, and the other way around. Integerabulous!

Integer sign changer examples
Click to use

Reverse Signs of Integers

In this example, we reverse the signs of eleven integers to the opposite signs. Values 1 to 5 are greater than zero, so they become less than zero in the output. Integers -6 to -10 are less than zero, so they turn greater than zero in the output. The integer 0 doesn't have a sign, therefore its sign does not change.

0
1
2
3
4
5
-6
-7
-8
-9
-10

0
-1
-2
-3
-4
-5
6
7
8
9
10

**Required options**

Use opposite sign for all integers.

Always use "+" sign for all
positive integers and "-" sign
for all negative integers.

All Integers to Negatives

This example activates the "Minus Sign" option. With this option on, all integers become negative. To do it, the utility looks at the first symbol of the input integers. If it's a "-", then it prints the value as-is. If it's a digit, then it prepends a "-" in front in front of each integer.

10
-25
4265
-8080
56055

-10
-25
-4265
-8080
-56055

**Required options**

Use minus sign for all integers.

Always use "+" sign for all
positive integers and "-" sign
for all negative integers.

Force the Plus Sign

In this example, we convert a list of alternating integers into positive integers by enabling the "Plus Sign" mode. This mode takes the absolute value of each integer, which drops the minus sign if there was one. Also, all integers are printed with the forced "+" sign in front of them. This is achieved by enabling the "Force Sign" option. This option also adds a plus character to the zero value, which usually does not have a sign.

0
-10
200
-30
400
-50
600

+0
+10
+200
+30
+400
+50
+600

**Required options**

Use plus sign for all integers.

Always use "+" sign for all
positive integers and "-" sign
for all negative integers.

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/change-integer-sign

__?input__=0%0A1%0A2%0A3%0A4%0A5%0A-6%0A-7%0A-8%0A-9%0A-10&flip-sign=true&force-sign=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.

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 Regex

Create integers that match the given regular expression.

Subscribe!
Never miss an update

Cool!

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

Cool!