Judicial independence is a necessary and insufficient conditionto ensure procedural justice and substantive justice, but with the rapiddevelopment of the Internet, “network judges” came into being, and somepeople who do not understand the law, when there are some malignantincidents in society that attract attention, they will always rely on their simpleemotional values to blindly hope that criminal suspects will get the most severepunishment, so some people jokingly say, “Internet sentencing, the deathpenalty starts.” However, judges who are also in the society face the huge publicopinion and attention of the people, and sometimes have to be influenced by thevoice of public opinion in the judgment of the case, this article aims to comparethe Jiang Ge case in Japan and the Yao Jiaxin case in China to explore the impactof online public opinion on the judiciary in different countries.