In this paper I will present the use of fractal geometry to design Indonesian batik patterns. Fractals are geometric shapes consisting of several different characteristics whose parts have the same overall shape, are fragmented, and are created by iteration. This paper aims to provide a method for making fractal geometric patterns with an iteration basis in the form of fold catastrophe and cusp catastrophe formulas. Generator algorithm consists of basis, iteration, coloring, and duplication. To help discuss further about the algorithm, I will present a script program using Matlab. Using this algorithm, we can generate thousands of aesthetically beautiful variations of batik patterns, of which we present some examples.