Reverse String



How to use

Type or paste your text into the field above and the tool will fill in the results element with whatever you enter, reversed. Quick and easy.

The Code

If you're interested in the code behind this converter, this is prety close to the JavaScript that reverses the string.

function reverseString(str) {
 	return str.split("").reverse().join(""); 

It takes advantage of JavaScript's built in ability to reverse an array. The string is split into an array, reversed, and then joined back to a string.

DigitalOcean Referral Badge

This website may contain affiliate links. If you click on an affiliate link and make a purchase, we may receive a small commission at no additional cost to you.