A universal technique for the numerical simulation of channel waveguides and integrated optical splitters on their basis is presented. The method of finite elements using a Hermitian set of B splines is proposed as an algorithm. This method was used to optimize X-type splitters manufactured by titanium diffusion into a lithium niobate crystal. The results of numerical simulation agree well with the experimental data obtained on specially manufactured samples of X splitters.