An imaging device comprising: image capturing means; first imaging control means for having the image capturing means execute moving picture imaging; moving picture file creation means for creating a moving picture file that consists of a combination of moving picture data acquired through the moving picture imaging by the first imaging control means and index picture data; first recording control means for recording in a memory the moving picture file created by the moving picture file creation means; recording instruction means for instructing to record a still picture; still picture acquisition means for acquiring, when recording of a still picture is instructed by the recording instruction means while the first imaging control means is executing moving picture imaging, still picture data at the timing instructed; index picture file data creation means for creating an index picture data based on a size reduction of the still picture data; still picture file creation means for creating a still picture file that consists of a combination of the still picture data acquired by the still picture acquisition means and the index picture data; second recording control means for recording in the memory the still picture file created by the still picture file creation means; third recording control means for letting the index picture data of the moving picture file be the index picture data created by the index picture data creation means; and judging means for judging whether the recording instruction means has given instruction for still picture imaging during execution of the moving picture imaging by the first imaging control means, wherein the third recording control means lets the index picture data of the moving picture file be head picture data of moving picture data in the moving picture file that is recorded in the memory by the first recording control means, when the judging means judges that still picture imaging has not been instructed. image capturing means; first imaging control means for having the image capturing means execute moving picture imaging; moving picture file creation means for creating a moving picture file that consists of a combination of moving picture data acquired through the moving picture imaging by the first imaging control means and index picture data; first recording control means for recording in a memory the moving picture file created by the moving picture file creation means; recording instruction means for instructing to record a still picture; still picture acquisition means for acquiring, when recording of a still picture is instructed by the recording instruction means while the first imaging control means is executing moving picture imaging, still picture data at the timing instructed; index picture file data creation means for creating an index picture data based on a size reduction of the still picture data; still picture file creation means for creating a still picture file that consists of a combination of the still picture data acquired by the still picture acquisition means and the index picture data; second recording control means for recording in the memory the still picture file created by the still picture file creation means; third recording control means for letting the index picture data of the moving picture file be the index picture data created by the index picture data creation means; and judging means for judging whether the recording instruction means has given instruction for still picture imaging during execution of the moving picture imaging by the first imaging control means, wherein the third recording control means lets the index picture data of the moving picture file be head picture data of moving picture data in the moving picture file that is recorded in the memory by the first recording control means, when the judging means judges that still picture imaging has not been instructed.