Antimatter continues to intrigue physicists because of its apparent absence in the observable Universe. Current theory requires that matter and antimatter appeared in equal quantities after the Big Bang, but the Standard Model of particle physics offers no quantitative explanation for the apparent disappearance of half the Universe. It has recently become possible to study trapped atoms of antihydrogen to search for possible, as yet unobserved, differences in the physical behaviour of matter and antimatter. Here we consider the charge neutrality of the antihydrogen atom. By applying stochastic acceleration to trapped antihydrogen atoms, we determine an experimental bound on the antihydrogen charge, Qe, of |Q| < 0.71 parts per billion (one standard deviation), in which e is the elementary charge. This bound is a factor of 20 less than that determined from the best previous measurement of the antihydrogen charge. The electrical charge of atoms and molecules of normal matter is known to be no greater than about 10(-21)e for a diverse range of species including H2, He and SF6. Charge-parity-time symmetry and quantum anomaly cancellation demand that the charge of antihydrogen be similarly small. Thus, our measurement constitutes an improved limit and a test of fundamental aspects of the Standard Model. If we assume charge superposition and use the best measured value of the antiproton charge, then we can place a new limit on the positron charge anomaly (the relative difference between the positron and elementary charge) of about one part per billion (one standard deviation), a 25-fold reduction compared to the current best measurement.