A digital swappable endoscope including pipe end and host end is provided. The pipe end includes lens module, image sensor, and sensor processor. The lens module is configured to capture a light. The sensor processor is connected to the image sensor and transforms the light into a digital sign. The host end includes a programmable logic device and a CPU. The programmable logic device is connected to the pipe end and configured to receive the digital signal. The CPU is connected to the programmable logic device. The programmable logic device is configured to determine the signal format of the digital signal. The programmable logic device carries out the following step after determining:A. if the signal format is conformed to specification, the digital signal is transmitted to the CPU andB. if the signal format is not conformed to specification, a simulation signal is transmitted to the CPU.