No you don’t need a business license to sell online. You can start as a sole-proprietorship which is what most people do.
Once your business starts to take off, you can register an official LLC, corporation, or private limited company based on your country / legal jurisdiction.
Reducing these upfront cost and barriers can let you get started faster.