# Set reverser

## World's simplest set tool

With this online application, you can quickly reverse the order of elements in an ordered set. As different sets have different notations, you can adjust the open-set and close-set symbols, as well as customize the element separator symbol for the input and output sets. Created by team Browserling.

We put a browser in your browser!
Browserling

Check out our project Browserling – get a browser in your browser.

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

Can't convert.

Set reverser tool
What is a set reverser?

This browser-based program reverses the given ordered set. It doesn't change the collection of objects in the set but only rearranges the elements so that they are output in reverse order. Usually, curly braces are used to denote a set and the elements within a set are separated by commas. Sometimes, however, they can also be written in a different style, such as regular brackets instead of curly brackets and semicolons instead of commas. The default settings are configured for the standard set format with curly brackets and commas but we also added an option that lets you use a different set format. If you use a different set format, you can adjust the open and close set characters, as well as set the element separator. You can also create a new set format for the reversed set by changing the output set notation options. Here are some examples to illustrate how this utility works. If the input is the ordered set {1, 2, 3}, then it's converted to the reversed set {3, 2, 1}. If the input set uses a different style, such as square parenthesis and semicolons, and the output set is configured to use round parenthesis and spaces between elements, then the set [x; y; z] is reversed to (z y x). This utility is also able to reverse multisets with repeated elements. Setabulous!

Set reverser examples
Click to use

Reverse a Set of Digits

In this example, we load an ordered set of digits from 0 to 9 as the input set and apply the set reversal algorithm to it. The algorithm rearranges the elements of the input set and displays them in the reverse order from 9 to 0. Since we are using the default set style options (curly braces and commas) the output set style is the same as the input set style.

{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}

{9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

**Required options**

Character that separates the
elements in the input set.

Open symbol.

Close symbol.

Character that separates the
elements in the output set.

Open symbol.

Close symbol.

Greek Alphabet Set

This example reverses a custom set that consists of the Greek alphabet letters. This set uses the square brackets [ ] to denote the set and it uses the space character as an element separator character. To correctly extract individual elements from the set, we need to customize the input set formatting options and change the set-open symbol to [, set-close symbol to ], and separator symbol to the space. For the output set, we also use a custom format and change the set-open and set-close symbols to "<" and ">", and "-" as the element separator symbol.

[α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ τ υ φ χ ψ ω]

<ω-ψ-χ-φ-υ-τ-σ-ρ-π-ο-ξ-ν-μ-λ-κ-ι-θ-η-ζ-ε-δ-γ-β-α>

**Required options**

Character that separates the
elements in the input set.

Open symbol.

Close symbol.

Character that separates the
elements in the output set.

Open symbol.

Close symbol.

Rainbow Set

The input set in this example consists of multi-colored Unicode squares that are arranged in rainbow colors from red to violet. As the input set doesn't have open-set and close-set characters around it, and all set elements are joined together with no delimiter symbols between them, we leave the input set format fields blank. When the program runs, it rearranges the rainbow colors in reverse order from violet to red, and to make this example more pretty, it also places a diamond shape separator between the colors.

🟥🟧🟨🟩🟦🟪

🟪💠🟦💠🟩💠🟨💠🟧💠🟥

**Required options**

Character that separates the
elements in the input set.

Open symbol.

Close symbol.

Character that separates the
elements in the output set.

Open symbol.

Close symbol.

Pro tips
Master online set 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://onlinesettools.com/reverse-set

__?input__=%7B0%2C%201%2C%202%2C%203%2C%204%2C%205%2C%206%2C%207%2C%208%2C%209%7D&input-element-separator=%2C%20&input-open-set=%7B&input-close-set=%7D&output-element-separator=%2C%20&output-open-set=%7B&output-close-set=%7D
All set tools

Quickly find the powerset P(S) of the given set S.

Quickly reverse the order of elements in an ordered set.

Quickly find the number of elements in a set.

Quickly apply the set union operation on two or more sets.

Quickly apply the set intersection operation on two or more sets.

Quickly apply the set difference operation on two or more sets.

Coming soon
These set tools are on the way

Draw a Venn Diagram

Illustrate two or more sets as a Venn diagram.

Find Set Symmetric Difference

Apply the set difference operation on sets A and B.

Find Set Cartesian Product

Apply the set cartesian product operation on sets A and B.

Find All Subsets of a Set

Quickly find all sets that are subsets of set A.

Find All Set Permutations

Generate all permutations of set elements.

Enumerate a Set

Add numbering to all set elements.

Filter a Set

Print set elements that match a filter.

Find Set Elements

Find elements in a set that match certain criteria.

Apply a Function on a Set

Run a function on all elements in a set.

Convert a Multiset to a Set

Convert a set with repeated elements to a standard set.

Convert a Set to a List

Create a list from the given set.

Convert a List to a Set

Create a set from the given list.

Convert a Set to an Array

Create an array from the given set.

Convert an Array to a Set

Create a set from the given array.

Duplicate Set Elements

Repeat set elements multiple times.

Print Duplicate Elements

Find all duplicate elements in a set.

Remove Duplicate Elements

Delete all duplicate elements from a set (leave unique).

Print Unique Elements

Find all unique elements in a set.

Remove Unique Elements

Delete all unique elements from a set (leave duplicates).

Remove Empty Set Elements

Delete empty elements (zero-length elements) from a set.

Find Set Depth

Calculate how many levels of subsets a set has.

Flatten a Set

Decrease subset nesting.

Truncate a Set

Remove elements from a set and make it smaller.

Truncate Set Elements

Shorten all set elements to the given length.

Expand a Set

Add elements to a set and make it bigger.

Split a Set

Split a set into a certain number of subsets.

Join Sets

Merge multiple sets together to form one large set.

Slice a Set

Extract an index-based subset from a set.

Partition a Set

Find disjoint subsets of the given set whose union is the same set.

Randomize a Set

Randomly change the order of elements in a set.

Select a Random Set Element

Pick a random element from the given set.

Select a Random Subset

Pick a random subset of the given set.

Generate an Empty Set

Create a set with no elements.

Generate a Digit Set

Create a set that contains digits.

Generate a Number Set

Create a set that contains numbers.

Generate an Integer Set

Create a set that contains integers.

Generate a Decimal Set

Create a set that contains decimal fractions.

Generate a Letter Set

Create a set that contains letters.

Generate a Character Set

Create a set that contains characters.

Generate a Word Set

Create a set that contains words.

Generate a String Set

Create a set that contains strings.

Generate a Text Set

Create a set that contains text.

Generate a Sentence Set

Create a set that contains sentences.

Generate a Random Set

Create a set that contains random elements.

Generate a Custom Set

Create a custom set with custom elements and custom size.

Generate an Infinite Set

Create a set with infinitely many elements.

Generate a Finite Set

Create a set with a finite number of elements.

Change Set Notation

Change the open-set, close-set, and element separator symbols.

Change Set Size

Add or remove set elements to make it a certain size/length.

Destroy a Set

Launch a Zalgo attack on a set and destroy it.

Compare Sets

Find all differences between two or more sets.

Symmetrize a Set

Convert a regular set to a symmetric multi-set.

Color a Set

Add colors to set elements.

Visualize a Set

Create an abstract visualization of a set.

Convert a Set to an Image

Create a downloadable picture from a set.

Print Set Analytics

Analyze a set and print its statistics.

Subscribe!
Never miss an update

Cool!

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

Cool!