An optical packet compression for data samples with different bit patterns and scaling degrees is proposed and demonstrated. The compression stages are composed of optical modulators, 3-dB couplers and fiber delay lines. Erbium-doped fiber amplifiers are applied only between pairs of compression stages. An experiment of 16-bit packet size with compression from 150 MHz to 2.5 GHz is also reported. The proposed scheme achieved low costs in terms of optical components while preserving the signal pattern and scaling degree integrity. It is also shown that the scaling monitoring is an important performance issue for optical communications systems.