A head cleaning device that includes: an ink jet recording head including a nozzle plane formed with nozzles for ejecting ink; a positioning member capable of being brought into contact with an area outside the nozzle plane; and a cleaning roller capable of defining a minute gap between its roller plane and the nozzle plane and capable of rotating while facing the roller plane toward the nozzle plane.