I have an invention. How can I find out if something similar already exists and has been patented?

One way of checking whether or not your product or idea has already been invented and patented by somebody else is to consult the EPO's free search service Espacenet. The database contains more than 150 million patent documents ‒ both published patent applications and granted patents ‒ from around the world.