In this work, the beam splitter with two input ports and two output ports in two-dimensional photonic crystals is studied through the finite-difference time-domain method. The beam splitter consists of two orthogonally cross line defects. The diameter of the two diagonal air holes at the intersection of the two line defects was modified. The input light can be identically divided into the two output ports. The beam splitters can be applied in the photonic crystal Mach-Zehnder interferometers or photonic crystal optical switches.