An electronic pedal apparatus is configured to perform an electronic pedal function by utilizing a basic configuration and also perform a foldable function by adding some elements to the basic configuration to be usefully used in an autonomous vehicle.