Tonsillitis is usually caused by viral infections but about 1/3 of the cases are due to a bacterial infection. It is impossible to tell the difference between bacterial or viral infections- you need medical tests to identify the exact cause.
Attribution: Avallain