
Text Manipulator API
Content
Transform text with powerful editing tools. Convert case, format, clean data, find/replace, and process text in bulk with one-click operations.
Authentication
All API requests require a valid API key passed in the Authorization header as a Bearer token.
Rate Limit
100 requests per minute
Endpoints
1 endpoint available
Overview
The Text Manipulator API provides programmatic access to powerful text transformation operations. Use it to convert case, clean data, find and replace text, and perform bulk text operations.
Common Use Cases
- Batch processing of text data in ETL pipelines
- Automating text cleanup in content management systems
- Integrating text transformations into CI/CD workflows
- Building custom text processing applications
Available Operations
The following operations are supported via the operation parameter:
Case Conversion
uppercase- Convert text to UPPERCASElowercase- Convert text to lowercasetitle_case- Convert Text To Title Casesentence_case- Convert text to Sentence casealternating_case- Convert to aLtErNaTiNg CaSe
Text Transformations
reverse_text- Reverse the entire textreverse_lines- Reverse the order of linessort_lines- Sort lines alphabeticallyremove_duplicate_lines- Remove duplicate linesremove_empty_lines- Remove empty lines
Whitespace Operations
remove_extra_whitespace- Collapse multiple spaces to single spaceremove_leading_whitespace- Remove spaces at start of linesremove_trailing_whitespace- Remove spaces at end of linesremove_all_whitespace- Remove all whitespace charactersremove_newlines- Remove all newlines (single line output)
Advanced Operations
remove_numbers- Remove all numeric charactersremove_punctuation- Remove punctuation marksremove_special_characters- Remove special charactersescape_html- Escape HTML entitiesunescape_html- Unescape HTML entitiesbase64_encode- Encode text to Base64base64_decode- Decode Base64 to textfind_replace- Find and replace text (requiresfindandreplaceparameters)
Endpoints
POST
/v1/tools/text-manipulatorTransform text using the specified operation
Request Body
Content-Type: application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | Required | The input text to transform |
| operation | string Enum: uppercase, lowercase, title_case, sentence_case, alternating_case, reverse_text, reverse_lines, sort_lines, remove_duplicate_lines, remove_empty_lines, remove_extra_whitespace, remove_leading_whitespace, remove_trailing_whitespace, remove_all_whitespace, remove_newlines, remove_numbers, remove_punctuation, remove_special_characters, escape_html, unescape_html, base64_encode, base64_decode, find_replace | Required | The transformation operation to apply |
| find | string | Optional | Text to find (required for find_replace operation) |
| replace | string | Optional | Replacement text (required for find_replace operation) |
| caseSensitive | boolean | Optional | Whether find/replace is case sensitiveDefault: false |
Response Example
{
"success": true,
"result": "HELLO WORLD",
"operation": "uppercase",
"inputLength": 11,
"outputLength": 11
}Error Codes
400
Invalid request body or missing required parameters401
Missing or invalid API key429
Rate limit exceeded500
Internal server errorCode Examples
curl -X POST https://api.opentools.ca/v1/tools/text-manipulator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "hello world", "operation": "uppercase"}'