---
title: "Write Binary File"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/os/writebinaryfile
markdown: https://docs.nodetool.ai/nodes/lib/os/writebinaryfile.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/os/writebinaryfile.md
---

# Write Binary File

**Type:** `lib.os.WriteBinaryFile`

**Namespace:** `lib.os`

## Description

Write binary data (base64-encoded) to a file in the workspace.
    os, file, write, binary, save

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| path | `str` | Relative path to file within workspace | `` |
| content | `str` | Base64-encoded binary content to write | `` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `str` |  |

## Related Nodes

Browse other nodes in the [lib.os](./) namespace.
