Yes, gambling online is legal in the UK. In fact the UK is one of the most gambling-friendly territories in the world. However, do note that there are strict restrictions on gambling for under-18s and gambling is discouraged for persons at risk of problem gambling behaviours.