In this study, a synthesis method for a non-integer periodic function generator of a four-bar mechanism using a Haar wavelet is presented. Using wavelet theory, the mathematical model for the output of a four-bar mechanism is established. Next, the characteristics of the four-bar mechanism output variable are described by the wavelet feature parameters; the relationship of the wavelet feature parameters between the output and its translation or dilation is also investigated. Based on this finding, three numerical atlas databases comprising of 203,500 groups of basic dimensional types of planar four-bar mechanisms, 148,995 groups of basic dimensional types of spherical four-bar mechanism and 11,175 groups of basic dimensional types of planar slidercrank mechanism are compiled. According to the internal relationship between the wavelet feature parameters, the sizes of the objective mechanism can be obtained using fuzzy recognition. Based on a genetic algorithm, optimization of the link parameters can be realized. Three examples are presented to demonstrate the efficacy and practicality of the proposed theory.