Significance The human skin is capable of identifying compliance of touched materials using pressure and strain-sensing mechanoreceptors. This multitude of sensation requirement has been a grand challenge preventing the development of compact devices capable of compliance sensing. The compliance sensor presented here is developed by integrating a strain and a pressure sensor with a unique design. The thin form factor of the proposed method, along with easy fabrication, enables integration to robotics in high spatial resolution. Thus, the compliance sensor presented here is expected to enable humanlike compliance sensation to robots and machines.