Loading...
Reference

Universal Encoder

Overview

Heavstal Universal Encoder is an intelligent transformation engine. It supports standard Base64 and Base32 operations but adds a layer of "Smart Detection."

✨ Magic Feature:

When decoding, if the engine detects that the result is a binary file (Image, Audio, PDF, Zip) or a massive text block, it will automatically upload the result to a cloud host (Catbox) and return a direct download link instead of crashing your app with raw binary data.

Endpoint

POST /encoder

Request Parameters

FieldTypeRequiredDescription
textstringRequiredThe string to process.
typestringOptional'base64' (default) or 'base32'.
modestringOptional'encode' (default) or 'decode'.

Example 1: Text Encoding

javascript

Response (Text)

json

Example 2: Smart File Decoding

If you send a Base64 string that represents an image, the API detects it.

javascript

Response (File Detected)

json