Excel to TOML Converter
Convert Excel to TOML configuration format
Excel Input
Upload Excel File
Click to browse or drag and drop
Supports .xlsx and .xls files
Convert Excel to other formats
TOML Output
Convert other formats to TOML
Related Tools
Excel to TracWiki
Convert Excel to Trac Wiki table markup
Excel to XML
Convert Excel to XML with customizable element names
Excel to YAML
Convert Excel to YAML arrays and objects
HTML to ActionScript
Convert HTML to ActionScript code for Flash/AIR applications
HTML to ASCII
Convert HTML to plain ASCII text with table formatting
HTML to AsciiDoc
Convert HTML to AsciiDoc markup format for documentation
Excel to TOML Converter Guide
This Excel to TOML converter turns spreadsheet rows into structured TOML configuration format. It is ideal when you manage settings, environments, or content in Excel and
want to generate valid .toml files for applications that use TOML.
Key Features
- Excel file support: Upload
.xlsxor.xlsfiles from Excel, Google Sheets, or LibreOffice. - TOML array of tables: Each row becomes a
[[data]]table with key–value pairs. - Header‑based keys: When headers are enabled, column names are transformed into TOML keys.
- Key sanitization: Column names are converted to safe, lower‑case
snake_casekeys for TOML. - Type‑aware formatting: Strings, numbers, booleans, and dates are formatted appropriately for TOML.
- Metadata section: Automatically appends a
[metadata]table describing the source file, sheet, and counts. - Copy & download: Copy the TOML configuration or download it as a
.tomlfile.
How to Convert Excel to TOML Configuration
- Upload your Excel file: Drag and drop a
.xlsx/.xlsfile or click the upload box to choose one. - Choose header behavior: Enable “First row is header” if the first row contains column names you want to use as TOML keys.
- Automatic conversion: The tool reads the first sheet, builds a
[[data]]table for every row, and formats each cell as a TOML value. - Review the TOML output: Check the generated
[[data]]entries and the[metadata]block. - Copy or download: Copy the TOML to your clipboard or download it as
output.tomlfor direct use in your application.
Example: Excel to TOML
Consider an Excel sheet with:
- Row 1 (headers):
Environment,URL,Enabled - Row 2:
production,https://api.example.com,true - Row 3:
staging,https://staging.example.com,false
The generated TOML might look like:
[[data]]environment = "production"url = "https://api.example.com"enabled = true[[data]]environment = "staging"url = "https://staging.example.com"enabled = false
You can drop this TOML directly into a config file used by Rust, Go, Node.js, or any other TOML‑aware application.
Common Use Cases
- Application configuration: Maintain app settings in Excel and export them to TOML for production or staging.
- Feature flags: Build a spreadsheet of flags and convert it into a TOML config consumed by your app.
- Content configuration: Define site sections, navigation, or metadata in Excel and move them into TOML‑based static site generators.
- Data exchange: Share structured data in a human‑readable TOML format instead of raw spreadsheets.
Benefits of This Excel to TOML Tool
- No manual editing: Avoid hand‑crafting TOML files from spreadsheets.
- Consistent keys: Automatic key sanitization keeps your configuration tidy and predictable.
- Type‑safe formatting: Numbers, booleans, and strings are formatted as valid TOML values.
- Free, instant, and in‑browser: Convert Excel to TOML without installing extra software.
FAQ
Which Excel formats can I upload?
The tool supports both .xlsx and .xls files. Export from Google Sheets or other tools as Excel to convert.
How are TOML keys generated from column names?
Column headers are lower‑cased and converted to snake_case. Special characters are removed or replaced
with underscores so the final keys are TOML‑friendly.
How are values formatted in the TOML output?
Strings are wrapped in quotes and escaped, numbers are left as numeric literals, and booleans use true / false.
Dates are converted to ISO strings.
Is my spreadsheet data uploaded to a server?
No. All Excel to TOML conversion happens locally in your browser. Nothing is sent to a backend service, which keeps your configuration private.
Can I merge the generated TOML into an existing config file?
Yes. You can copy individual [[data]] tables or move keys into other TOML sections depending on how your
application reads configuration.
