The invention discloses an online community partitioning method based on genetic algorithm and priori knowledge, mainly solving the problems in the prior art, such as poor portioning stability, low accuracy rate and low efficiency. The online community partitioning method comprises the steps of: 1, reading an actual network diagram in to generate an adjacent matrix; 2, setting initialization parameters; 3, randomly generating an initial population; 4, calculating a fitness value according to the adjacent matrix, selecting 450 chromosomes with the maximum fitness values as a parent population; 5, carrying out genetic manipulation on the chromosomes in the parent population, forming a child population; 6, partially searching the child population; 7, merging the parent population with the child population to obtain a new parent population; and 8, judging whether an operation algebra in the step 3 reaches 50, is so, ending the operation, and outputting partitioning results of all nodes in the chromosomes with the maximum fitness, namely community partitioning results. The online community partitioning method has the advantages of stable partitioning result, high partitioning accuracy rate and high partitioning efficiency.