Pandoc If you need to convert files from one markup format into another, pandoc is your swiss-army knife. Try online
Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library.
Pandoc can convert between numerous markup and word processing formats, including, but not limited to, various flavors of Markdown, HTML, LaTeX and Word docx. For the full lists of input and output formats, see the --from and --tooptions below. Pandoc can also produce PDF output