Reverse text

Reverse text by characters, by words or by lines. Accents and emoji stay attached to their letters.

Input

The text to reverse.
What to reverse: the characters, the order of words, or the order of lines.

Result

Fill in the input and press Run.

Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.

Use it from code or an agent

curl -s https://setget.net/v1/tools/reverse-text \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":"Hello, world"}}'
import json, urllib.request

body = {'input': {'text': 'Hello, world'}}
request = urllib.request.Request("https://setget.net/v1/tools/reverse-text", json.dumps(body).encode(),
                                 {"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/reverse-text", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"text":"Hello, world"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "reverse-text",
  "input": {
    "text": "Hello, world"
  }
}
{
  "input": {
    "text": "Hello, world"
  }
}

Endpoint: POST /v1/tools/reverse-text. Over MCP: run_tool with slug: "reverse-text". Machine-readable: input schema, Markdown. Connect an agent.

Inputs

NameTypeRequiredWhat it does
text string yes The text to reverse.
by string no What to reverse: the characters, the order of words, or the order of lines. One of: characters, words, lines. Default: "characters".

Examples

Input
{
  "text": "Hello, world"
}
Result
{
  "text": "dlrow ,olleH"
}

Word order

Input
{
  "text": "one two three",
  "by": "words"
}
Result
{
  "text": "three two one"
}

Line order

Input
{
  "text": "first\nsecond\nthird",
  "by": "lines"
}
Result
{
  "text": "third\nsecond\nfirst"
}

Questions

Does it break accented letters or emoji?
No. A letter keeps its combining accents, and emoji made of several parts (skin tones, flags, joined emoji) stay whole.