arXiv LaTeX Cleaner

 https://github.com/google-research/arxiv-latex-cleaner

TeX | Tools

This tool allows you to easily clean the LaTeX code of your paper to submit to arXiv. For example, it removes comments and optimizes images.