I have listed a few free public and private MQTT brokers that you can use for testing or prototyping.


Private MQTT Broker: In a private broker, only devices that you set can publish and subscribe to the topics on the broker. You should use this for production & prototyping.

Public MQTT Broker: In a public broker, any device can publish and subscribe to topics on the broker. There is no privacy. Public brokers should never be used in production. If you simply want to learn or play around with MQTT then use this.

If you want to install your own broker on your computer or virtual machine see this:
Installing Mosquitto Broker ob Ubuntu/Windows/Debian

The information in the tables were last updated on April 7th 2020.

Public MQTT Brokers

Private MQTT Brokers

Also, see:
5 Best MQTT Clients For Testing