Yes, you can compost peppers (aka bell peppers or capsicums) and they’ll rot down quickly.
If you grow your own veg, you can save the seed to grow yourself – though many supermarket-bought peppers are hybrids so won’t necessarily grow “true”.
Peppers/capsicums are “greens“: if you’ve got a LOT, add alongside carbon-based matter to keep the compost balanced.
If I have picked more than I need of hot peppers fresh from my garden, can I put them directly into the compost pile without worrying about their seed germinating in compost or in my garden when compost is ready? Or should I freeze them prior to composting.
I’m pruning my bell peppers and eggplant. Can I put the leaves and stems in my compost?