What’s the difference? ‘Will’ and ‘be going to’

My Online Language
Intermediate Level
What’s the difference Will And to be GOING to?
A short explanation between WILL and BE GOING TO..