Guide: n8n where are binary files stored?
If you search n8n where are binary files stored, the direct answer is that n8n stores binary files on the local filesystem by default. This means binary assets live in the n8n data directory inside the container or the n8n user’s home folder unless you change the storage method.
What is binary data in n8n
Binary data means files like images, documents, or attachments that workflows pass between nodes. These are not plain text. n8n keeps them separate from workflow JSON to avoid bloating the database and to speed up transfers.
Default storage: n8n where are binary files stored
By default, n8n saves binary files on the local disk. When you run n8n on a VPS the files are on the server disk. When you use Docker the files live inside the container filesystem unless you mount a volume for persistence.
How to keep files persistent on Docker and VPS
- On Docker, mount a host volume to the n8n data directory so files survive container restarts.
- On a VPS, ensure the n8n data folder is on a persistent disk and included in backups.
- Use a dedicated data directory outside ephemeral tmp locations.
Options for external or shared storage
You can move binary storage to external services to scale and share files. Common choices are object stores like Amazon S3, Google Cloud Storage, or a network file share. External storage keeps files safe when containers move across hosts.
Best practices for storage and security
- Store files on persistent volumes for Docker and persistent disks for VPS.
- Restrict access to the storage location with proper file permissions and IAM rules for cloud stores.
- Include binary directories in your backup plan.
- Limit retention for large or temporary files to save disk space.
In summary, n8n where are binary files stored is answered by default local filesystem storage. For reliability use mounted volumes, external object storage, and good security and backup rules to keep binary data safe and available.