The gutenfmt utility formats its input to various output formats as well.
Supported input formats:
gutenfmt uses JSON as its default output format, but offers other formats.