The invention is an x-ray window with a stack of thin film layers including aluminum layer(s), corrosion-barrier layer(s), and/or polymer layer(s). Aluminum layer(s) can provide improved gas impermeability. Polymer layer(s) can increase structural strength. The x-ray window can be substantially transmissive to x-rays but also substantially block visible light and infrared light. The x-ray window can have minimal deflection.