An automatic floor cleaner includes a cover, a base plate, a motive assembly, a driving wheel assembly, and a flat bottom plate. In use, the flat bottom plate can be attached with a dust removal sheet to mop a floor surface. When the floor cleaner hits an object, the driving wheel assembly can rotate about a vertical output axle of the motive assembly to cause the moving direction of the floor cleaner to be changed to a randomly new direction, so that the floor cleaner can escape the object to continue advancing and cleaning the floor surface. Furthermore, the floor cleaner can be mounted with a vacuum cleaning unit, so that the cleaning effect can be improved.