# PDF to Base64 converter

- Human page: https://happytails.ai/en/pdf-tools/pdf-to-base64/
- Markdown: https://happytails.ai/en/pdf-tools/pdf-to-base64.md
- Structured JSON: https://happytails.ai/agents/en/pdf-tools/pdf-to-base64/index.json
- Visibility: public

## Tool capabilities

| Property | Value |
| --- | --- |
| Tool ID | `pdf-to-base64` |
| Category | pdf-tools |
| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |
| Browser execution | Use the visible action or interactive controls. |
| Browser processing | Browser; see tool notes for network behavior. |
| HTTP API | Not callable through HTTP. |
| Browser-agent interface | run_current_tool |

### Implementation notes

Encodes the original PDF bytes as standard Base64 without changing the document. Up to 750 KB, producing at most 1,000,000 Base64 characters. Encoding is not encryption.

### Inputs and settings

No free-text input is required. Use the file inputs and/or settings below.

Accepted browser files: `.pdf`. Choose one file.

Browser file-input limit: 750000 bytes in total. HTTP limits can differ.

No additional settings are declared for this tool.

### Browser-agent workflow

1. Open the human page in a browser that supports WebMCP.
2. Discover the interface exposed by that page; use its actual schema.
3. Select files on the page first when the tool requires files.
4. Call `run_current_tool` with valid input and settings.
5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.

Calls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.

### Planning specification

The output is standard padded Base64, without a data-URL prefix. Encoding increases file size and provides no privacy or encryption. The document itself is not compressed or rewritten.

This describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.

### Complete machine-readable capability record

```json
{
  "id": "pdf-to-base64",
  "category": "pdf-tools",
  "built": true,
  "requirements": "The output is standard padded Base64, without a data-URL prefix. Encoding increases file size and provides no privacy or encryption. The document itself is not compressed or rewritten.",
  "implementation": {
    "fields": [],
    "files": true,
    "input": false,
    "accept": ".pdf",
    "maxFileBytes": 750000,
    "note": "Encodes the original PDF bytes as standard Base64 without changing the document. Up to 750 KB, producing at most 1,000,000 Base64 characters. Encoding is not encryption.",
    "experience": {
      "automatic": false,
      "single": false,
      "inputMaxLength": 1000000,
      "inputMode": "text",
      "label": "Your text",
      "placeholder": "Type or paste your input…",
      "help": "Up to 1,000,000 characters. Review the settings before running.",
      "action": "Convert file"
    },
    "mode": "explicit",
    "interactive": false
  },
  "execution": "Browser interface",
  "api": null,
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}
```

## Page guide

Encode a PDF as Base64 text without changing its bytes.

How can we improve this tool?

Report a problem or share an idea.

Please leave out private information. Your message and the tool name go to our team via PostHog.

### How to use PDF to Base64 converter

1. Choose a file in PDF.
2. Review the settings, then choose Convert file.
3. Review the result, then use Copy result or a download link when available.

## Useful next steps

- [Base64 to PDF converter](https://happytails.ai/en/pdf-tools/base64-to-pdf/) ([Markdown](https://happytails.ai/en/pdf-tools/base64-to-pdf.md))

- [PDF metadata editor](https://happytails.ai/en/pdf-tools/pdf-metadata-editor/) ([Markdown](https://happytails.ai/en/pdf-tools/pdf-metadata-editor.md))

- [Split PDF](https://happytails.ai/en/pdf-tools/split-pdf/) ([Markdown](https://happytails.ai/en/pdf-tools/split-pdf.md))

## How to use it

Choose an unencrypted PDF up to 750 KB. Copy the resulting string or download it as a text file. Use Base64 to PDF to reverse the conversion.

### A worked example

Every three source bytes typically become four Base64 characters. A 750,000-byte PDF produces 1,000,000 characters, excluding any optional data-URL prefix.

### What to know

The output is standard padded Base64, without a data-URL prefix. Encoding increases file size and provides no privacy or encryption. The document itself is not compressed or rewritten.
