Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

Base64 Decoder

platform.base64_decode

ProductionBounded custom (Class B)Deterministicstrictinstantv1.0.0
File inputNo network

Overview

You pass a Base64 string (inline or via file reference); we decode it per RFC 4648 with alphabet validation and a bounded decoded-byte ceiling. Return decoded text (UTF-8 or your chosen encoding) or re-encoded standard Base64 for binary-safe transport. Do not use this to encode data or decrypt ciphertext. Accepts file input via file_ref — no need to extract file content first.

You meet Base64 everywhere — API responses, embedded certificates, config values — and decoding it by hand invites alphabet and padding mistakes. We decode it with a size ceiling so a huge payload cannot exhaust memory.

Reliability

STRICT and deterministic — the same Base64 text with the same options always gives you the same bytes. Decoding is not decryption and not authentication: anything encoded this way was never protected, so treat the result as untrusted input. Input validation (not retryable): no encoded input, or both an inline value and a file reference; text that is not valid for the alphabet you declared, including bad padding; a textEncoding this platform does not know; maxDecodedBytes outside 1 to 5242880; a payload that decodes to more than maxDecodedBytes.

Context footprint

Pure computation with no I/O. Enforces max decoded size to prevent memory abuse. Returns instantly. A successful call costs 1 execution credit.

When to use it

When you have a Base64 string and want the bytes back, either as text or re-encoded for binary-safe transport.

When you want to go the other way (use platform.base64_encode), when the payload is encrypted rather than encoded, or when it decodes to more than 5 MB.

Scope

Note
Decodes Base64-encoded data with validation and safe size limits per RFC 4648.

Non-goals

  • Does not encode data (use platform.base64_encode)
  • Does not decrypt or verify signatures
  • Does not handle streaming or chunked decoding

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

encodingtext-processing

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call1 credit

File handling

Accepts file_refProduces file_refMax input5 MBMax file size6.7 MB

File limits

Constraints this skill applies to your input and generated files. The “Limited by” column shows the static source of each cap; none of these can be raised by upgrading your plan.

LimitValueLimited by
Maximum size per input file6.7 MiBSkill and platform maximum

How we handle your data

Sensitive output possible
What this means

This skill may receive sensitive content and may return submitted, transformed, extracted, or reformatted content.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • This skill does not target sensitive data.
  • The response may contain submitted or transformed content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
encodedstringNoBounded inline Base64 text; omit it when encoded_file_ref is the source.
encoded_file_refstringNoTenant-scoped file reference containing Base64 text; omit it when encoded is the source.
urlSafebooleanNoWhether input uses Base64url; omit it for false.
outputFormatstringNoOutput representation; omit it for text.
textEncodingstringNoDecoded-text charset; omit it for UTF-8.
maxDecodedBytesintegerNoCaller ceiling for decoded bytes; omit it for 5 MiB.

Output schema

FieldTypeRequiredDescription
decodedBytesintegerYesDecoded byte count after alphabet and padding checks.
alphabetstringYesApplied alphabet, either base64 or base64url.
outputFormatstringYesApplied output representation.
textstringNoBounded decoded payload representation.
dataBase64stringNoBounded decoded payload representation.
textEncodingstringNoCanonical decoded-text charset.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"platform.base64_decode","input":{"encoded":"SGVsbG8sIFdvcmxkIQ==","outputFormat":"text"}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("platform.base64_decode", {"encoded":"SGVsbG8sIFdvcmxkIQ==","outputFormat":"text"});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not encode data (use platform.base64_encode)
  • Does not decrypt or verify signatures
  • Does not handle streaming or chunked decoding
  • Encoding data to Base64
  • Processing encrypted data
  • Decoding very large blobs beyond the size limit

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "platform.base64_decode",
  "input": {
    "encoded": "SGVsbG8sIFdvcmxkIQ==",
    "outputFormat": "text"
  }
}

Examples

Decode Base64 to text

Inputjson
{
  "encoded": "SGVsbG8sIFdvcmxkIQ==",
  "outputFormat": "text"
}
Expected outputjson
{
  "alphabet": "base64",
  "decodedBytes": 13,
  "textEncoding": "UTF-8",
  "text": "Hello, World!",
  "outputFormat": "text"
}
Tip
Standard Base64 decoded to UTF-8 text

Decode to binary-safe Base64 output

Inputjson
{
  "encoded": "aGVsbG8=",
  "outputFormat": "base64"
}
Expected outputjson
{
  "decodedBytes": 5,
  "outputFormat": "base64",
  "dataBase64": "aGVsbG8=",
  "alphabet": "base64"
}
Tip
Returns re-encoded standard Base64 instead of text
  • Decode Base64 payloads received from APIs
  • Extract text from Base64-encoded content
  • Validate Base64 integrity before processing
  • Convert Base64-encoded configuration values to plaintext

Avoid for

  • Encoding data to Base64
  • Processing encrypted data
  • Decoding very large blobs beyond the size limit

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

transformationencoding