PWMSim

LTspicePowerSim

2:1 switched-capacitor ladder

LTspicePowerSim's 2:1 ladder, halving 10 V with one flying capacitor.

Open and simulate
Press Run: the example simulates in your browser. Open and simulate takes it to the full app, where you can change it.

Try this

Double the switching frequency and watch the output move toward 5 V. Then press Run again.