PROBLEM TO BE SOLVED: To provide an inverting mechanism which, when a capsule falls upside down from a hopper randomly storing capsules, makes correction of positioning a body downside and a lid upside, in a filling device for filling liquid, powder or grain in the capsule formed by fitting the lid having a larger outer diameter to the body of a smaller outer diameter. SOLUTION: A turn table 4 intermittently turned is provided adjacently to a drop hole 7 for dropping a capsule 1 guided from a hopper 29. A rotator 5 with a storage hole 15 for storing the dropped capsule 1 is formed on the outer periphery of the table 4 and is pivoted to turn on the axis in the radius direction. A fitting piece 16 is protrusively formed on the outside of the rotator 5 and a fitting part 23 fitted with the piece 16 and turned by 180°is provided adjoining the table 4. COPYRIGHT: (C)2009,JPO&INPIT