We prove necessary and sufficient algebraic conditions to determine whether a D = 3 gauged maximal supergravity can be obtained from consistent Kaluza-Klein truncation of ten- or eleven-dimensional supergravity. We describe the procedure to identify the internal geometry and explicitly construct the frame encoding the reduction ansatz. As byproducts, we derive several results on twistings, deformations and global aspects of E8(8) exceptional geometry and define E8(8) generalised diffeomorphism for massive IIA supergravity. We devise simple algebraic conditions for imposing compactness of the internal space and derive no-go results for the uplift of compact gaugings and of a large class of gauged maximal supergravities with N\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$ \mathcal{N} $$\end{document} = (8, 0) AdS3 solutions.