
Excel file viewer and interactive TUI for terminal with multi-sheet support and export capabilities
xleak is a terminal-based Excel file viewer that renders spreadsheets without requiring Microsoft Excel. The tool supports multiple Excel formats (.xlsx, .xls, .xlsm, .xlsb) and LibreOffice Calc files (.ods), handling multi-sheet navigation and Excel tables extraction.
The interactive TUI mode provides full keyboard navigation with arrow keys, search functionality across all cells using '/', and clipboard integration for copying cells or entire rows. Users can view cell formulas by pressing Enter, jump to specific cells with Ctrl+G, and switch between sheets using Tab/Shift+Tab. The interface includes smart data alignment (numbers right-aligned, text left-aligned) and visual highlighting of the current row, column, and cell.
For non-interactive use, xleak supports exporting data to CSV, JSON, and plain text formats. It can extract named Excel tables from .xlsx files and display specific sheets by name or index. The tool includes lazy loading for large files with 1000+ rows and offers configurable themes and keybinding profiles (default and vim-style).
Built in Rust using the calamine parser, xleak targets developers, data analysts, and system administrators who need to inspect Excel files from the command line or incorporate spreadsheet viewing into terminal-based workflows.
# via Homebrew
brew install bgreenwell/tap/xleak
# via Cargo
cargo install xleak
# via Scoop
scoop bucket add bgreenwell https://github.com/bgreenwell/scoop-bucket && scoop install xleak
