Text

Format Conversion

0calls
1 credits / call

Need to convert between different text formats? This endpoint supports mutual conversion between Base64, Hex, URL, HTML, Unicode and other formats, and can also generate MD5, SHA256 and other hash values.

Overview

You provide the text to convert, source format and target format, the endpoint will automatically complete the conversion. Supports 7 bidirectional formats (plain, base64, hex, url, html, unicode, binary) and 4 one-way hashes (md5, sha1, sha256, sha512).

Format Description

Bidirectional Conversion Formats: plain (plain text), base64, hex (hexadecimal), url, html (HTML entities), unicode (\uXXXX escape), binary (binary string)

One-way Hash Formats: md5, sha1, sha256, sha512 (can only be used as target format, irreversible)

Chained Conversion

Supports multiple calls to achieve complex conversions, such as first converting text to base64, then converting base64 to hex.

Request body

text
stringrequired

Text content to be converted

from
stringrequired

Source format type

to
stringrequired

Target format type

options
objectoptional

Optional parameters (reserved, currently not used)

Response

200 / OK

Conversion successful

JSON

400 / Bad Request

Conversion failed or parameter error

JSON