Reverse Text API
Reverse text by characters (keeping emoji and accents intact), by word order, or by line order.
POST /api/v1/tools/reverse-textMCP reverse_textText & WritingReverse text backwards character by character, flip the order of words, or reverse the order of lines. Emoji and accented letters stay intact.
Input
Send these as a JSON object. Unknown fields are rejected.
- input
- The text to reverse. (string, required)
- mode
- characters, words (reverse word order on each line) or lines (reverse line order). (string, one of characters, words, lines, default "characters")
- perLine
- In characters mode, reverse each line on its own instead of the whole text. (boolean, default false)
curl https://pithlab.com/api/v1/tools/reverse-text \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"input":"Hello, world!","mode":"characters"}'Example response
{
"ok": true,
"result": {
"output": "!dlrow ,olleH"
}
}