The best format for such purposes is a vector file to keep high-resolution quality (these are .eps, .ai, .pdf, .cdr, .cgm, .cad). JPEG and PNG files typically have poor scalability which may spoil the quality of logos or artworks.