A uniform Birkhoff theorem