file-converter
File format converter. Detect formats, convert between JSON/YAML/XML/CSV/Markdown, minify and prettify code. Commands: detect, json2yaml, yaml2json, csv2md,...
45 downloads
Free
Reviewed
chinese
productivity
🔄 File Converter
One command, any format. Convert between JSON, YAML, XML, CSV, and Markdown. Minify and prettify code files.
Quick Start
bash scripts/convert.sh <command> [file]
Commands
| Command | Description | Example |
|---|---|---|
detect <file> | Auto-detect file format | detect data.txt |
json2yaml <file> | JSON → YAML | json2yaml config.json |
yaml2json <file> | YAML → JSON | yaml2json config.yaml |
csv2md <file> | CSV → Markdown table | csv2md report.csv |
md2csv <file> | Markdown table → CSV | md2csv table.md |
xml2json <file> | XML → JSON | xml2json data.xml |
json2xml <file> | JSON → XML | json2xml data.json |
minify <file> | Compress JSON/CSS/JS | minify app.js |
prettify <file> | Beautify code | prettify min.json |
Workflow
- Run
detectto confirm source format - Pick the right conversion command
- Use
prettifyto verify output readability - Use
minifyto compress production files
Notes
- Output goes to stdout — redirect with
>to save - Supports pipe input:
cat data.json | bash scripts/convert.sh json2yaml - - Run
detectfirst on unknown files to avoid garbled output
Download
ZIP package — ready to use
Skill Info
- Creator
- ckchzh
- Downloads
- 45
- Published
- Mar 15, 2026
- Updated
- Mar 16, 2026