As you will realise there are not many public toilets in Rome. You can, however, ask to use the ones in bars, restaurants, fast food, etc., ... just do as we Romans do and don't feel obliged to buy anything.