Skip to content
Worix
BrowsePublish
Log inSign Up

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

CommandDescriptionExample
detect <file>Auto-detect file formatdetect data.txt
json2yaml <file>JSON → YAMLjson2yaml config.json
yaml2json <file>YAML → JSONyaml2json config.yaml
csv2md <file>CSV → Markdown tablecsv2md report.csv
md2csv <file>Markdown table → CSVmd2csv table.md
xml2json <file>XML → JSONxml2json data.xml
json2xml <file>JSON → XMLjson2xml data.json
minify <file>Compress JSON/CSS/JSminify app.js
prettify <file>Beautify codeprettify min.json

Workflow

  1. Run detect to confirm source format
  2. Pick the right conversion command
  3. Use prettify to verify output readability
  4. Use minify to compress production files

Notes

  • Output goes to stdout — redirect with > to save
  • Supports pipe input: cat data.json | bash scripts/convert.sh json2yaml -
  • Run detect first 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