Reverse text
Reverse text by characters, by words or by lines. Accents and emoji stay attached to their letters.
Input
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
| Name | Type | Required | What 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.
Related tools
- Sort linesSort lines alphabetically, naturally (file2 before file10), by number or by length, or reverse their order.
sort-lines - Case converterConvert text between lower, UPPER, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case and more.
case-convert - Unicode inspectorList every character in a text with its code point, name, category and UTF-8 bytes, flagging invisible ones.
unicode-inspect - Apply a patchApply a unified diff to a text and get the patched result, with clear errors when a hunk does not fit.
patch-apply - Escape and unescape textEscape or unescape text for HTML, URLs, JSON strings, shell commands, regular expressions and CSV fields.
escape-unescape - Extract emails and URLsPull every email address and web link out of a text, and optionally IPv4 addresses and hashtags.
extract-emails-urls