Generate SQL CREATE TABLE and INSERT statements directly from Excel files – all locally, no data ever leaves your device. Perfect for developers, DBAs, and data analysts who need to quickly convert spreadsheets into database-ready queries.
- 📁 Load Excel Files – Supports
.xlsxand.xlsformats. - 🧠 Smart Type Detection – Automatically infers SQL data types:
INT(whole numbers)FLOAT(decimals)DATE(dates in various formats)VARCHAR(n)/TEXT(strings, with length estimation)
- 🎯 Flexible Extraction Modes:
- Only structure – Generate just the
CREATE TABLEstatement. - Full data –
CREATE TABLE+INSERTstatements for every row. - Custom selection – Choose specific columns and/or row ranges (e.g., rows 2–10, 20–40).
- Only structure – Generate just the
- ✨ SQL Formatting – One‑click formatting with proper indentation.
- 📋 Copy to Clipboard – Easily paste the generated SQL anywhere.
- 🔄 Reset Button – Clear all inputs and start over.
- 📱 Mobile Optimised – Works on Firefox for Android (opens in a new tab).
- 🔒 Privacy First – All processing happens locally – no data is ever sent to any server.
- ⚡ Opens in a New Tab – Provides ample space to work with large Excel files.
- Visit the add‑on page (link will be active after submission).
- Click Add to Firefox.
- The extension will open in a new tab when you click its toolbar icon.
- Clone this repository or download the source.
- Open Firefox and go to
about:debugging. - Click This Firefox → Load Temporary Add‑on.
- Select the
manifest.jsonfile from the extension folder. - The extension icon will appear in the toolbar – click it to open.
- Enable USB debugging on your Android device.
- Install
web-extglobally:npm install --global web-ext - In the extension folder, run:
web-ext run --target=firefox-android - Select your device when prompted. Firefox Nightly will open with the extension installed.
- Click the extension icon – it opens in a new tab.
- Choose an Excel file (
.xlsxor.xls). - Enter a table name (e.g.,
employees). - Select generation mode:
- Only structure – just the
CREATE TABLEstatement. - Full data –
CREATE TABLE+INSERTstatements for all rows. - Custom selection – pick specific columns and/or row ranges.
- Only structure – just the
- Click "Generate SQL".
- Format the SQL (optional) or Copy to clipboard.
- Use the Reset button to clear everything and start over.
- Firefox browser (for testing)
- (Optional)
web-extfor running on Android
excel-to-sql/
├── manifest.json # Extension manifest (MV2)
├── background.js # Opens the main page in a new tab
├── popup.html # Main interface
├── popup.css # Cyber gold theme, mobile responsive
├── popup.js # Core logic (Excel parsing, SQL generation)
├── xlsx.full.min.js # SheetJS library (loaded locally)
└── icons/ # Extension icons (16,32,48,128 PNGs)
- SheetJS (xlsx) – Used for parsing Excel files. Loaded locally, no external calls.
To create a distributable .xpi file:
web-ext buildThe built package will be in the web-ext-artifacts/ folder.
This extension does not collect, store, or transmit any personal data.
- All file processing happens entirely in your browser.
- No analytics, no tracking, no external network requests.
- The
xlsxlibrary is bundled locally – no CDN calls. - The
data_collection_permissionsinmanifest.jsonis set to"required": ["none"], which is verified by Firefox.
This project is licensed under the MIT License – see the LICENSE file for details.
The included xlsx.full.min.js is Copyright (c) SheetJS and licensed under the Apache License 2.0.
- SheetJS – for the excellent Excel parsing library.
- Mozilla – for the comprehensive extension documentation.
- All contributors and users who provide feedback.
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
- Fork the project.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Author: onyxwizard
Project Link: https://github.com/onyxwizard/excel-to-sql
Firefox Add‑on Page: Excel to SQL Query Generator
⭐ If you find this extension useful, please consider giving it a star on GitHub! ⭐


