>>3326608Always refer to the charts provided by filter manufacturers and you can't go wrong.
https://tiffen.com/tiffen-filters/lenstofilterchart/I guess you got a Canon 18-55mm as a kit lens that has a 58mm thread size, but even other 18-55mm lenses from other brands use a different filter size, so there is no one-size-fits-all thread size.
Filter adapters (e.g. 58-67MM) exist.