An electric door lock includes a lock device and an electric control device. The lock device includes a latch bolt, an inner cover seat, and a handle mechanism driving movement of the latch bolt. The inner cover seat has an inner cover having an inner receiving room, and a window that is communicated with the inner receiving room. The electric control device electrically controls the lock device, and includes a middle circuit board fixedly received in the inner receiving room, and an inner circuit board removably received in the inner receiving room, removably connected to the middle circuit board, corresponding to the window in position, and removable from the inner receiving room through the window.