I freeze onions all the time. If I chop an entire onion and it's more than I need, I put the excess chopped onion in a ziplock bag and pop it in the freezer. Next time a recipe calls for sauteed onions, that's what I use.