To reduce operating costs and obtain the optimal location and capacity of renewable energy access, a two-stage robust planning model is studied for active distribution networks with a high proportion of renewable energy access. To build a function to minimize annual comprehensive costs, the constraints of power flow, branch power, and node voltage of the active distribution network are studied. Considering the characteristics and properties of power flow safety constraints, the mixed integer second-order cone transformation is used to construct a mixed integer convex programming model, which is convenient for efficiently obtaining the global optimal solution. To avoid the influence of uncertainty, a two-stage robust model is constructed. The explicit maximum value method is used to obtain the solution results that satisfy the planning model of all uncertain problems. Experiments show that the model can obtain the optimal access position and capacity of renewable energy. After application, it can reduce the annual comprehensive cost of the distribution network and ensure the stable and safe operation of the active distribution network.