California's GDP is the fifth largest in the world. If there was no US and all the states were independent countries instead here's where the largest ones would rank:
#4 California (behind China, Germany, and Japan)
#9 Texas
#11 New York
#19 Florida
#21 Illinois
#22 Pennsylvania
(Puerto Rico...