We introduce a full set of rules to directly express all $M$-point conformal blocks in one- and two-dimensional conformal field theories, irrespective of the topology. The $M$-point conformal blocks are power series expansion in some carefully-chosen conformal cross-ratios. We then prove the rules for any topology constructively with the help of the known position space operator product expansion. To this end, we first compute the action of the position space operator product expansion on the most general function of position space coordinates relevant to conformal field theory. These results provide the complete knowledge of all $M$-point conformal blocks with arbitrary external and internal quasi-primary operators (including arbitrary spins in two dimensions) in any topology.