doxx 📄
.docxfiles in your terminal — no Microsoft Word required
A fast, terminal-native document viewer for Word files. View, search, and export .docx documents without leaving your command line.
Screenshots
✨ Features
- Beautiful terminal rendering with formatting, tables, and lists
- Fast search with highlighting 🔍
- Smart tables with proper alignment and Unicode borders
- Copy to clipboard — grab content directly from the terminal
- Export formats — Markdown, CSV, JSON, plain text
- Terminal images for Kitty, iTerm2, WezTerm 🖼️
- Color support — see Word document colors in your terminal
🚀 Installation
Package managers
Homebrew (macOS/Linux)
# Add our tap (coming soon)
Cargo (cross-platform)
Scoop (Windows)
# Coming soon
Pre-built binaries
Download from GitHub releases:
# macOS/Linux - automatic platform detection
|
# Verify installation
Available platforms:
- Linux:
x86_64-unknown-linux-musl(statically linked) - macOS:
x86_64-apple-darwin(Intel) andaarch64-apple-darwin(Apple Silicon) - Windows:
x86_64-pc-windows-msvc
Build from source
# Or for development
Requirements:
- Rust 1.70+
- System dependencies:
libxcb(Linux only)
🎯 Usage
# View a document
# Search for content
# Start with outline view
# Export to different formats
# View with images (supported terminals)
# Enable color rendering
📋 Command Line Options
Basic options
| Option | Description |
|---|---|
<FILE> |
Input document file (.docx) |
-h, --help |
Show help information |
-V, --version |
Show version information |
Viewing options
| Option | Description |
|---|---|
-o, --outline |
Start with outline view for quick navigation |
-p, --page <PAGE> |
Jump to specific page number on startup |
-s, --search <TERM> |
Search and highlight term immediately |
--force-ui |
Force interactive UI mode (bypass TTY detection) |
--color |
Enable color support for text rendering |
Export options
| Option | Values | Description |
|---|---|---|
--export <FORMAT> |
markdown, text, csv, json |
Export document instead of viewing |
Export examples:
📊 CSV export note: The CSV export extracts only tables from the document, ignoring all text content. Perfect for pulling structured data from business reports, research papers, or surveys for analysis in Excel, Python, or databases.
Image options
| Option | Description |
|---|---|
--images |
Display images inline in terminal (auto-detect capabilities) |
--extract-images <DIR> |
Extract images to specified directory |
--image-width <COLS> |
Maximum image width in terminal columns (default: auto-detect) |
--image-height <ROWS> |
Maximum image height in terminal rows (default: auto-detect) |
--image-scale <SCALE> |
Image scaling factor (0.1 to 2.0, default: 1.0) |
Image examples:
⚠️ Image display notes:
--imagescurrently works with--export textmode and shows placeholders in TUI- Supports iTerm2, Kitty, and WezTerm terminals
⌨️ Navigation
| Key | Action |
|---|---|
↑/k |
Scroll up |
↓/j |
Scroll down |
o |
Toggle outline |
s |
Search |
c |
Copy to clipboard |
h |
Help |
q |
Quit |
🔧 Why doxx?
Current terminal tools for Word documents:
- docx2txt → Loses all formatting, mangled tables
- pandoc → Complex chain, formatting lost
- antiword → Only handles old
.docfiles
doxx gives you:
- ✅ Rich formatting preserved (bold, italic, headers)
- ✅ Professional table rendering with alignment
- ✅ Interactive navigation and search
- ✅ Multiple export formats for workflows
- ✅ Terminal image display for modern terminals
- ✅ Fast startup (50ms vs Word's 8+ seconds)
Perfect for developers, sysadmins, and anyone who prefers the terminal.
📊 Examples
Quick document analysis
# Get overview and search
# Extract tables for analysis
|
Copy workflows
# Review and copy sections
# Press 'c' to copy current view to clipboard
# Copy search results
# Press F2 to copy results with context
Pipeline integration
# Extract text for processing
|
# Get document structure
|
🏗️ Architecture
Built with Rust for performance:
- docx-rs — Document parsing
- ratatui — Terminal UI
- viuer — Image rendering
- unicode-segmentation — Proper Unicode handling
🛠️ Development
# Build and test
# Run with sample document
📋 Roadmap
- Image support in TUI via ratatui-image crate
- Enhanced table support (merged cells, complex layouts)
- Performance improvements for large documents
- Hyperlink navigation
- Custom themes
📝 License
MIT License — see LICENSE file for details.
Made for developers who live in the terminal 🚀