README
ΒΆ
YNAB Export Tool
A simple, beginner-friendly tool to export your YNAB (You Need A Budget) budget data for import into Actual Budget.
This tool simplifies the export process described in the Actual Budget migration guide by providing an interactive terminal interface that guides you through each step.
Quick Start
- Download the binary for your platform
- Get your YNAB API token from Developer Settings
- Run the tool from your terminal
- Follow the prompts to select and export your budget
- Import into Actual Budget using the exported file
π Secure β’ π Fast β’ π Cross-platform β’ π¦ No installation required
Installation
Download Pre-built Binary
Download the latest release for your operating system from the Releases page.
Choose the appropriate binary:
- Windows:
ynab-export_*_windows_amd64.exe - macOS (Intel):
ynab-export_*_darwin_amd64 - macOS (Apple Silicon):
ynab-export_*_darwin_arm64 - Linux (64-bit):
ynab-export_*_linux_amd64 - Linux (ARM64):
ynab-export_*_linux_arm64
The binaries are ready to run - no extraction or installation needed!
Advanced: Build from Source
Build from Source
If you have Go installed (version 1.25 or later), you can build from source:
Note: This project uses Go's experimental
encoding/json/v2package. You'll need to set theGOEXPERIMENTenvironment variable.
GOEXPERIMENT=jsonv2 go install github.com/StephenBrown2/ynab-export@latest
Or clone and build:
git clone https://github.com/StephenBrown2/ynab-export.git
cd ynab-export
GOEXPERIMENT=jsonv2 go build
Using Just (Build Tool)
If you have Just installed:
# Build for current platform
just build
# Build for all platforms
just build-all
# Run directly
just run
# See all available commands
just
Usage
Step 1: Get Your YNAB API Token
Before running the tool, you'll need a YNAB Personal Access Token:
- Sign in to the YNAB web app
- Go to Account Settings β Developer Settings
- Under "Personal Access Tokens", click New Token
- Enter your password and click Generate
- Important: Copy the FULL token from the top of the page (under "New Personal Access Token:")
- Do NOT use the partially obfuscated token shown in the table (e.g.,
XXXXXXXXXX-Wax0q8) - The token is only shown once, so copy it immediately!
- Do NOT use the partially obfuscated token shown in the table (e.g.,
Direct link: YNAB Developer Settings
Step 2: Run the Tool
Simply run the downloaded binary:
Linux/macOS:
# Make it executable (first time only)
chmod +x ynab-export_*_linux_amd64 # or darwin_amd64/darwin_arm64
# Run it
./ynab-export_*_linux_amd64
Windows:
Run from Command Prompt, PowerShell, or Windows Terminal:
ynab-export_0.0.1_windows_amd64.exe
Note: Do not double-click the
.exefile - it must be run from a terminal to interact with the application properly.
Recommended: Install Windows Terminal for the best experience. It's free from the Microsoft Store and provides a modern terminal with better colors and font rendering.
To install: Open Microsoft Store β Search "Windows Terminal" β Click "Get"
Once installed, right-click in your Downloads folder and select "Open in Terminal" to run the executable.
Tip: You can rename the binary to simply
ynab-export(orynab-export.exeon Windows) for easier use.
Step 3: Follow the Prompts
The tool will guide you through:
- Enter your API token (the token you generated in Step 1)
- Tip: Set the
YNAB_API_TOKENenvironment variable to skip entering your token each time
- Tip: Set the
- Select your budget from the list of budgets in your YNAB account
- Wait for export - the tool downloads your budget data
- Done! Your budget is saved to
~/Downloads/ynab-export-budget-name-YYYYMMDD-HHMMSS.json
Advanced: Using Environment Variable for Token
To skip entering your token each time, set the YNAB_API_TOKEN environment variable:
# Linux/macOS
export YNAB_API_TOKEN="your-token-here"
./ynab-export
# Windows (PowerShell)
$env:YNAB_API_TOKEN="your-token-here"
.\ynab-export.exe
# Windows (Command Prompt)
set YNAB_API_TOKEN=your-token-here
ynab-export.exe
The tool will automatically validate the token from the environment variable and skip the token entry screen if valid.
Step 4: Import into Actual Budget
Now that you have your exported JSON file:
- Open Actual Budget
- Select the dropdown menu and choose Close File
- Click Import file
- Select nYnab as the import type
- Choose the exported JSON file from your Downloads folder
- Follow any cleanup steps mentioned in the Actual Budget migration guide
Screenshots
1. Welcome Screen (Token Entry)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YNAB Budget Exporter β
β β
β This tool will help you export your YNAB budget β
β for import into Actual Budget. β
β β
β To get your API token: β
β 1. Sign in to the YNAB web app β
β 2. Go to Account Settings β Developer Settings β
β 3. Under 'Personal Access Tokens', click 'New' β
β 4. Enter your password and click 'Generate' β
β β
β Enter your YNAB API token: β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’ β
β β
β Press Enter to continue β’ Ctrl+C to quit β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2. Token Validation
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YNAB Budget Exporter β
β β
β β Token validated successfully β
β β
β Fetching your budgets... β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
3. Budget Selection
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YNAB Budget Exporter β
β β
β Select a budget to export: β
β β
β > Personal Budget (Last Modified: 2025-10-14) β
β f1a2b3c4-d5e6-7f8g-9h0i-1j2k3l4m5n6o β
β β
β Family Budget (Last Modified: 2025-10-10) β
β a1b2c3d4-e5f6-7g8h-9i0j-1k2l3m4n5o6p β
β β
β Business Budget (Last Modified: 2025-09-28) β
β z9y8x7w6-v5u4-t3s2-r1q0-p9o8n7m6l5k4 β
β β
β Use β/β to navigate β’ / to search β’ Enter to β
β select β’ Esc to go back β’ q/Ctrl+C to quit β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
4. Export in Progress
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YNAB Budget Exporter β
β β
β Exporting Budget... β
β β
β Downloading budget: Personal Budget β
β Please wait... β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5. Export Complete with Budget Summary
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β Export Complete! β
β β
β Budget: Personal Budget β
β Saved to: ~/Downloads/ynab-export-personal- β
β budget-20251015-143022.json β
β β
β Budget Summary: β
β Currency: USD ($) β
β Accounts: 8 (plus 2 closed) β
β Categories: 24 (plus 3 hidden, 1 deleted) β
β Payees: 142 β
β Transactions: 1,847 β
β Date Range: Jan 2023 to Oct 2025 β
β File Size: 2.3 MB β
β β
β You can now import this file into Actual Budget: β
β 1. Open Actual Budget β
β 2. If a budget is already open, select the β
β dropdown menu and 'Close File' β
β 3. Select 'Import file' β
β 4. Choose 'nYNAB' β
β 5. Select the exported JSON file β
β 6. Once imported, review your budget and β
β follow cleanup steps at β
β actualbudget.org/docs/migration/nynab#cleanupβ
β β
β Press Enter or q to quit β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Keyboard Shortcuts
- Arrow Keys (β/β): Navigate through budget list
- / : Filter/search budgets
- Enter: Select/Confirm
- Esc: Go back to previous screen
- Ctrl+C or q: Quit the application
Troubleshooting
"API error: 401 Unauthorized"
Your API token is invalid or expired. Generate a new token from YNAB's Developer Settings.
"No budgets found"
Make sure you have at least one budget in your YNAB account.
"Permission denied" when saving file
Check that you have write permissions to your Downloads folder.
Binary won't run on macOS
macOS may block the binary because it's not from an identified developer. To run it:
# Replace with your actual binary name, e.g., ynab-export_0.0.1_darwin_arm64
xattr -d com.apple.quarantine ynab-export_*_darwin_*
# Or make it executable
chmod +x ynab-export_*_darwin_*
Or right-click the file, select "Open", and click "Open" in the security dialog.
Contributing
We welcome contributions! Please see CONTRIBUTING.md
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- YNAB for their excellent budgeting software and API
- Actual Budget for the open-source alternative
- Charm Bracelet for the beautiful TUI libraries (Bubble Tea)
Related Links
Support
If you encounter any issues or have questions:
- Check the Troubleshooting section above
- Review the Issues page
- Create a new issue if your problem isn't already listed
Note: This tool is not affiliated with YNAB or Actual Budget. It's a community project to help users migrate their data.
Documentation
ΒΆ
There is no documentation for this package.