There is a CENTER property available in the public enum HorizontalAlignment, as well as VerticalAlignment to set the cell text, align centered. Now set the vertical and horizontal alignment to the cellStyle and set this style to the cell which will align the text to the center. Example: CellStyle cellStyle = wb.createCellStyle(); cellStyle.setAlignment(HorizontalAlignment.CENTER); cellStyle.setVerticalAlignment(VerticalAlignment.CENTER); cell.setCellStyle(cellStyle);