This question already has an answer here:

I found a couple of interesting formulas and would like to post an image of them on Twitter. Anyway, I'd like the formulas to look good, so obviously I'll be typesetting them with TeX... So is there a good - and preferably as direct as possible - way to make output from TeX into a PNG or JPEG file?

marked as duplicate by egreg math-mode Jun 22 '16 at 23:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.