This tool converts Google Voice HTML exports (SMS messages and call logs) into a single CSV file that can be viewed in any spreadsheet program.
- Processes both SMS messages and call logs from Google Voice HTML exports
- Extracts timestamps, contact information, message content, and call details
- Consolidates all communication into a chronologically sorted spreadsheet
- Works with standard Google Voice HTML export format
- Simple command-line interface with minimal dependencies
- Python 3.6 or newer
- BeautifulSoup4 library (
pip install beautifulsoup4
)
- Clone this repository or download the script:
git clone https://github.com/yourusername/google-voice-converter.git
# OR
wget https://raw.githubusercontent.com/yourusername/google-voice-converter/main/google_voice_converter.py
- Install the required dependency:
pip install beautifulsoup4
- Place the script in the same directory as your Google Voice HTML files
- Run the script:
python google_voice_converter.py
- Find the resulting CSV file (
google_voice_combined.csv
) in the same directory
You can modify the following variables in the script:
input_directory
- Path to the directory containing HTML files (default: current directory)output_csv
- Name of the output CSV file (default: "google_voice_combined.csv")
The script:
- Detects and processes all HTML files in the specified directory
- Identifies whether each file contains SMS messages or call logs
- Extracts relevant data from each file using BeautifulSoup4
- Combines all data into a single list of messages/calls
- Sorts the combined data chronologically
- Outputs the data to a CSV file
The CSV file contains the following columns:
timestamp
- ISO format timestamp from the HTMLreadable_time
- Human-readable time stringtype
- Communication type (SMS, Missed Call, Placed Call, Received Call)direction
- Direction of communication (incoming/outgoing)contact
- Name of the contactphone_number
- Phone number associated with the contactbody
- Message content or call descriptionfile_name
- Source HTML file name
MIT License
Contributions are welcome! Please feel free to submit a Pull Request.