In order to predict the remaining useful life (RUL) of rolling bearings in complex environmental conditions, a bearing RUL prediction method based on fractal dimension and one-dimensional convolutional neural network (1D-CNN) is proposed. This method uses fractal dimension to characterize the degeneration process of the rolling bearing and combines the features of time domain, frequency domain, wavelet packet domain, and entropy domain. Fractal dimension provides an analytical method for characterizing the complexity of vibration signals. The features extracted from different feature domains can complement each other's advantages, reveal the degradation state of the bearing more comprehensively and achieve better performance. Then, the percentage of the remaining life of the bearing is used as the degradation tracking index of the rolling bearing. Based on the idea of stratified sampling, the training samples and test samples are constructed, and then a 6-layer CNN is constructed to train the model. Finally, three commonly used data sets of full-life bearings are used to verify the model, namely, IEEE prognostics and health management 2012 Data Challenge, IMS dataset, and XJTU-SY dataset. The experimental results show that, on the three experimental datasets, compared to the long short-term memory network (LSTM) and the extreme learning machine (ELM) methods, the prediction effect of the RUL of the bearing based on the fractal dimension and 1D-CNN proposed in our paper is better. Its mean absolute error and root mean square error (RMSE) and mean absolute percentage error (MAPE) have been reduced, and the correlation index (R-2), adjusted_R-2, and relative accuracy (RA) have been improved, which can predict the RUL of the bearing more accurately.