South Star

Text Encoding Converter Detect Convert String Toolkit API

Free tier included · Text Analysis
Detect & convert character encodings, plus 16 string utility tools: base64, URL encoding, HTML escaping, case styles, diff, and batch operations.

It 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

MethodPathWhat it does
GET/API metadata and root discovery endpoint.
GET/healthLiveness probe checking service status.
GET/encodingsList supported text encodings and codecs known to the system.
POST/detectDetect character encoding from base64-encoded raw bytes or multipart file upload.
POST/convertConvert raw bytes from one text encoding to another.
POST/extra/base64/encodeEncodes raw bytes (given as base64) into a new base64 string.
POST/extra/base64/decodeDecodes a base64 string and returns the original bytes as base64.
POST/extra/url/encodePercent-encodes a text string for safe inclusion in URLs.
POST/extra/url/decodeDecodes a percent-encoded URL string back to plain text.
POST/extra/html/escapeEscapes special HTML characters for safe embedding.
POST/extra/html/unescapeConverts HTML entities back to their corresponding characters.
POST/extra/caseConverts text between common case styles (camel, pascal, snake, kebab, upper, lower, title, swap).
POST/extra/slugGenerates a URL-friendly slug from arbitrary text.
POST/extra/truncateTruncates text to a maximum length with an optional suffix.
POST/extra/padPads text to a fixed width with a fill character.
POST/extra/wrapWraps text into lines of at most the given width.
POST/extra/diffReturns a unified diff between two strings.
POST/extra/similarComputes Levenshtein distance and Jaccard similarity between two strings.
POST/extra/asciiConverts each character in text to its Unicode code point.
POST/extra/batch/base64/encodeEncodes a batch of base64 strings (max 100 items).
POST/extra/batch/caseConverts 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

Related APIs