# Base64 File Encode

> Read a file and encode its content to Base64 string

- Skill: `jadegate/base64-file-encode` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add jadegate/base64-file-encode`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jadegate/base64-file-encode/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jadegate (https://skillmd.com/u/jadegate)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jadegate/base64-file-encode

---


# Base64 File Encoder

Read a file and encode its content to Base64 string

## When to Use

- User wants to encode file
- User wants to file to base64
- Keywords: base64, encode, file, binary

## Required Parameters

- **file_path** (string): Path to file to encode

## Output

- **base64_string** (string): Base64 encoded content
- **original_size** (number): Original file size
- **encoded_size** (number): Encoded string length

## Security

- Sandbox level: strict
- Max execution time: 30000ms
- JadeGate verified: Yes (5-layer security check passed)

## Execution Flow

Entry: `read` -> 5 steps -> Exit: `ret_ok`, `ret_fail`

