A single, optimized tool that exports Google Documents and converts them to Markdown format with all images downloaded locally.
- Setup your service account key - Place
service-account-key.json
in this directory - Run the script:
python export-and-convert.py --document-id YOUR_GOOGLE_DOC_ID
- π Exports complete Google Document structure to JSON
- πΌοΈ Downloads all embedded images concurrently (lightning fast!)
- π Converts everything to clean Markdown format
- β‘ Runs in ~3 seconds for typical documents
output/document.json
- Complete document dataoutput/document.md
- Clean Markdown versionoutput/images/
- All downloaded imagesoutput/export.log
- Detailed process log
See USAGE_GUIDE.md for complete documentation, advanced options, and troubleshooting.
Real test results: 21 images (25.8 MB) downloaded and converted in 2.76 seconds
- 93% faster than sequential processing
- Professional logging and error handling
- Concurrent downloads with automatic retry logic
Notes:
./output/images/ directory has not been uploaded to this gist.
Google document used in this experiment: https://docs.google.com/document/d/12cWQaGSWtjTImNPQtVAuqLwg579vZoc4gFWjHCTz8Aw/edit?tab=t.0
Document screenshot

Exported to json then converted to markdown screenshot
