Flange bolt diameter is measured on the outside of the threads.
These bolts are all partially threaded. Shorter lengths are found with full thread.
Full thread, including shorter lengths.
Flange bolts have a flange on the bottom of the head that distributes the load like a washer.