Microcephaly can be diagnosed during pregnancy through routine ultrasound scans that measure the baby's head circumference. Postnatal diagnosis involves measuring the head circumference after birth and comparing it to standardized growth charts. If microcephaly is suspected, further imaging studies such as MRI or CT scans may be conducted to assess brain development.