We report a general approach to overcome the enormous obstacle of the integration of CNTs into devices by bonding single-walled carbon nanotubes (SWNTs) films to arbitrary substrates and transferring them into densified and lithographically processable "CNT wafers". Our approach allows hierarchical layer-by-layer assembly of SWNTs into organized three-dimensional structures, for example, bidirectional islands, crossbar arrays with and without contacts on Si, and flexible substrates. These organized SWNT structures can be integrated with low-power resistive random-access memory.