Extract Keys and Values from TOML
Quickly find and extract specific configuration values from large TOML files. Use dot-notation paths or regex to query nested tables and get just the data you need.
Extract Keys and Values from TOML
Query and extract specific configuration values from TOML files using dot-notation or regex.
Use dot-notation (e.g., database.host) or regex (e.g., ^.*.port$)
How the TOML Key-Value Extractor Works
This tool queries and extracts specific values from TOML files. Use dot-notation paths or regex patterns to find matching keys. Export results as JSON, TOML, or CSV for further processing or analysis.
Extraction Process
- Paste your TOML content into the input area
- Enter a query pattern (dot-notation or regex)
- Select export format: JSON, TOML, or CSV
- Click "Extract Values" to search
- Matching keys and values are collected
- Results are formatted in your chosen export format
- Copy or download the extracted data
Specific Use Cases
Configuration Auditing
A security team extracts all password-related keys from configs. Query pattern ".*password.*" finds sensitive fields.
Environment Variable Extraction
A developer extracts database settings for deployment scripts. Query "database.*" gets all database configuration.
Documentation Generation
Auto-generate documentation by extracting all config keys. Export to JSON for processing into documentation.
Config Validation
Extract required keys to verify they exist in a config file. Missing keys indicate incomplete configuration.
Data Analysis
Extract numeric values from TOML for statistical analysis. Export to CSV for import into spreadsheet tools.
What to Know Before Using This Tool
Understanding query patterns:
- Dot-notation: database.host matches exactly that key
- Partial match: host matches any key ending with .host
- Regex: ^.*\.port$ matches all port keys
- Empty query returns all keys
- Export formats: JSON (structured), TOML (config), CSV (tabular)
- Nested values are flattened in CSV export
Frequently Asked Questions
What query formats are supported?
Exact dot-notation (database.host), partial matches (host), and regex patterns (start with ^ for regex mode).
How do I match all keys in a section?
Use the section name as query: "database" matches database and all nested keys like database.host.
What export format should I use?
JSON for programmatic processing, TOML for config reuse, CSV for spreadsheet analysis or data import.
Can I extract nested values?
Yes, nested values are extracted with their full path. database.connection.host extracts the nested host value.
What if no keys match my query?
The result will be empty. Try a broader pattern or check your query syntax for errors.
How does regex mode work?
Start your query with ^ to enable regex mode. Example: ^.*\.port$ matches all keys ending in .port.
Other Free Tools
TOML to JSON Converter
Convert TOML to JSON Instantly
JSON to TOML Converter
Convert JSON to TOML Online
TOML Validator and Linter
Validate and Lint Your TOML Files
TOML Beautifier and Formatter
Beautify and Format TOML Code
TOML to YAML Converter
Convert TOML to YAML Easily
ASCII to Hex Converter
ASCII to Hex Converter: Text to Hexadecimal Translator
Barcode Generator
Free Barcode Generator
Binary to Text Converter
Binary to Text Converter
Free Printable Calendar Maker
Create & Print Your Custom Calendar
Pie Chart Maker
Free Pie Chart Maker Online