The biggest difference between a switch and a router is its function, followed by its appearance. A switch does not have the routing function, but a router has the routing function. The ports on the switch are ALL LAN ports. The ports on the router have both LAN and WAN ports.
A switch is different from a router
Each port on the switch functions and looks the same, with only forwarding, no routing, and no WIFI.
The router has one WAN port, which is used to access the Internet, and the other four black ports, which are LAN ports, are the same as the LAN ports of the switch. That is to say, the router can not only implement routing functions, but also send WIFI signals, and can be used as a switch.
Conclusion: The difference between a switch and a router mainly lies in its function and appearance. The difference in function is the main one. A switch only provides data exchange function. Routers are network devices working at layer 3. Routers can not only realize routing functions, but also send WIFI signals, namely wireless signals, for mobile phones or tablets. These functions are the main differences between routers and switches.
Secondly, there is a big difference from the interface appearance. The interface of the switch is basically the same, while the interface of the router generally has two kinds. One of them is Wan, used for network input, and the other is Lan, used for connecting computers or printers.