--- title: Croissant Converter emoji: 🥐 colorFrom: blue colorTo: green sdk: gradio sdk_version: 5.44.1 app_file: app.py pinned: false license: mit short_description: '"Croissant" is a trademark of MLCommons.' --- # 🥐 Croissant JSON-LD ↔ TOML Converter A bi-directional converter for transforming [Croissant](https://github.com/mlcommons/croissant) metadata between JSON-LD and human-readable TOML formats. ## Features - ✅ **Bi-directional conversion**: JSON-LD ↔ TOML - ✅ **File upload support**: Process up to 5 files at once - ✅ **Copy-paste interface**: Instant conversion for text content - ✅ **Auto-format detection**: Automatically detects input format - ✅ **Batch processing**: ZIP download for multiple files - ✅ **Error handling**: Robust validation and error reporting - ✅ **Examples included**: Sample content for both formats ## Usage ### File Upload 1. Select up to 5 Croissant files (.json, .jsonld, .toml) 2. Click "Convert Files" to process all uploads 3. Download individual files or ZIP package 4. Original filenames are preserved with new extensions ### Copy-Paste 1. Paste your Croissant content in the input area 2. Choose conversion direction or use auto-detect 3. Copy the converted content from the output ## Supported Formats - **JSON-LD**: Croissant metadata with @context and schema.org vocabulary - **TOML**: Human-readable format with comments and logical structure ## About Croissant Croissant is a metadata format for ML datasets developed by MLCommons. It provides a standardized way to describe dataset structure, fields, and distributions. "Croissant" is a trademark of MLCommons. This converter tool is not affiliated with or endorsed by MLCommons. ## Technical Details - Uses proper TOML Array of Tables syntax (`[[record_sets]]`) - Preserves complex nested objects during conversion - Handles schema.org and Croissant namespaces correctly - Maintains data integrity through round-trip conversions ## Links - [Croissant GitHub](https://github.com/mlcommons/croissant) - [MLCommons Croissant](https://mlcommons.org/croissant/) - [TOML Specification](https://toml.io/) Built with ❤️ using Gradio