We present a novel approach to extend optical coherence tomography (OCT) to the extreme ultraviolet (XUV) and soft X-ray (SXR) spectral range. With a simple setup based on Fourier-domain OCT and adapted for the application of XUV and SXR broadband radiation, cross-sectional images of semiconductors and organic samples becomes feasible with current synchrotron or laser-plasma sources. For this purpose, broadband XUV radiation is focused onto the sample surface, and the reflected spectrum is recorded by an XUV spectrometer. The proposed method has the particular advantage that the axial spatial resolution only depends on the spectral bandwidth. As a consequence, the theoretical resolution limit of XUV coherence tomography (XCT) is in the order of nanometers, e.g., 3 nm for wavelengths in the water window (280-530 eV). We proved the concept of XCT by calculating the reflectivity of one-dimensional silicon and boron carbide samples containing buried layers and found the expected properties with respect to resolution and penetration depth confirmed.