Text Encoding Converter Detect Convert String Toolkit API
Free tier included · Text AnalysisIt detects text encoding via chardet and converts between any codec Python supports (UTF-8, UTF-16/32, Windows-125x, KOI8-R, ISO-8859, Shift_JIS, GB18030, Big5, and more). In addition, it features 16 powerful string manipulation endpoints covering base64 encode/decode, URL encoding/decoding, HTML escape/unescape, case style conversion (camel, snake, kebab, Pascal), URL slug generation, text truncation, padding, wrapping, string diffing, Levenshtein and Jaccard similarity, ASCII code point conversion, and batch processing for base64 and case styles.
Four concrete use cases include: cleaning and normalising legacy files or incoming data streams with unknown encodings in ETL pipelines; building robust web scrapers that automatically detect and normalise character sets; powering text processing features in backend applications without installing heavy native libraries; and automating batch string formatting tasks in cron scripts or low-code workflows.
The service is fully offline and stateless, performing all conversions and string operations in memory with no logging or data storage. Honest limits: encoding detection and conversion payloads are restricted to 5 MB (5,242,880 bytes decoded) per request, string toolkit inputs scale up to 100,000 characters for transformations, and batch endpoints accept up to 100 items per call.
Endpoints
| Method | Path | What it does |
|---|---|---|
GET | / | API metadata and root discovery endpoint. |
GET | /health | Liveness probe checking service status. |
GET | /encodings | List supported text encodings and codecs known to the system. |
POST | /detect | Detect character encoding from base64-encoded raw bytes or multipart file upload. |
POST | /convert | Convert raw bytes from one text encoding to another. |
POST | /extra/base64/encode | Encodes raw bytes (given as base64) into a new base64 string. |
POST | /extra/base64/decode | Decodes a base64 string and returns the original bytes as base64. |
POST | /extra/url/encode | Percent-encodes a text string for safe inclusion in URLs. |
POST | /extra/url/decode | Decodes a percent-encoded URL string back to plain text. |
POST | /extra/html/escape | Escapes special HTML characters for safe embedding. |
POST | /extra/html/unescape | Converts HTML entities back to their corresponding characters. |
POST | /extra/case | Converts text between common case styles (camel, pascal, snake, kebab, upper, lower, title, swap). |
POST | /extra/slug | Generates a URL-friendly slug from arbitrary text. |
POST | /extra/truncate | Truncates text to a maximum length with an optional suffix. |
POST | /extra/pad | Pads text to a fixed width with a fill character. |
POST | /extra/wrap | Wraps text into lines of at most the given width. |
POST | /extra/diff | Returns a unified diff between two strings. |
POST | /extra/similar | Computes Levenshtein distance and Jaccard similarity between two strings. |
POST | /extra/ascii | Converts each character in text to its Unicode code point. |
POST | /extra/batch/base64/encode | Encodes a batch of base64 strings (max 100 items). |
POST | /extra/batch/case | Converts a batch of strings to the specified case style (max 100 items). |
Quick start
curl -X GET "https://textenc.p.rapidapi.com/encodings" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: textenc.p.rapidapi.com"
FAQ
What is the maximum file size for encoding detection and conversion?
Requests are limited to 5 MB (5,242,880 bytes decoded) per request to ensure fast processing.
Does the API store or log my text data?
No. All conversions and string toolkit operations happen entirely in memory on a stateless architecture with zero logging or persistence.
What encodings are supported?
Any text codec known to Python, including UTF-8, UTF-16, UTF-32, Windows-125x, KOI8-R, ISO-8859 variants, Shift_JIS, GB18030, Big5, and cp437.
Are batch operations supported for string utilities?
Yes. Batch endpoints for base64 encoding and case conversion accept up to 100 items per request.
Try Text Encoding Converter Detect Convert String Toolkit free
Free tier on every plan. Get an API key and start calling in under a minute.
Open on RapidAPI