Flange bolt diameter is measured on the outside of the threads.
Flange bolts have a flange on the bottom of the head that distributes the load like a washer.