The endoscopic image processing device includes an image acquisition section that acquires a normal observation image and a zoom observation image, the normal observation image being an image that includes an image of an object, and the zoom observation image being an image that magnifies the image of the object within an observation area that is part of the normal observation image, an attention area determination section that specifies an attention area on the zoom observation image, and a boundary setting section that detects a position of a boundary on the normal observation image that corresponds to a boundary of the attention area specified on the zoom observation image based on pixel values of the zoom observation image, and sets a boundary image at the detected position of the boundary on the normal observation image.