Question: are all power supplies the same?
Answer: No, they vary in size. PSUs that come pre-built into a case can have customized sizes(usually smaller than standard). But for aftermarket PSUs, they tend to have the same height and width, but vary in length usually depending on the wattage. A higher wattage PSU tends to be longer.