This city generator came from a combination of the following inspirational sources. I tried to take the best from each of them to make something solid yet simple for fleshing out the details of a City. This process can be paralyzing when adding realism to your worldbuilding, but hopefully this helps you more easily figure out the who, what, where, and how many for your RPG. All numbers are generalizations and should be adjusted up or down to meet your needs.
Medieval Demographics Made Easy
The Domesday Book
A Magical Medieval City Guide
CrystalBallSoft's City Generator
City Generator
People
Enter the total number of adults in the city.

Sq Mi
Acres
Households
GP
The most expensive item available to purchase in the city.
GP
At any given time, this is the total amount of ready cash as well as the total value of all items for sale.
GP
Total value of magic resources available.
GP
Annual payments to the Lord(s)/King over the city.


Potential occurence of occupations in the city.


Ward Total # % of
City
Area
Buildings
per Acre
% of
Total
Wards
Acres
Each
Buildings
Each
Notes
Patriciate Only 1 in 'Small Cities' or larger.
Merchant Only 1 unless it is a wealthy 'Large City' or 'Metropolis'.
Military These are not typical.
Administration One in a 'Small City' or larger.
Odoriferous Typically outside of the walls near water.
Craftsmen Multiple wards in 'Large Town' or larger.
General Housing
Sea/Ocean
River/Bridge
Market
Gate In a 'Small City' or larger.
Slum In a 'Small City' or larger, inside of the walls.
Shanty Town In a 'Small City' or larger, outside of the walls.

Total Buildings:
Buildings with residential function:
Adults per Dwelling:


Calculation #'s:
15-25 Dwellings per Acre (Extremes: 10-40)
150 SqFt per person of living space
Avg 3 adults per dwelling (Extremes: 2-5)
1-1.4X buildings per dwelling (Extremes: 0.4-1.9)
Quality:
A=Luxury, royal, imperial
B=Tasteful, ornate, artistic
C=Utilitarian, basic, normal
D=Derilict, rough, functional

Summary

Copy & Paste this text to keep for your worldbuilding.