The invention discloses an on-
chip transformer and an electronic device, and relates to the technical field of semiconductors, and the disclosed on-
chip transformer comprises a primary coil, a secondary coil and a
metal wire; the primary coil is a coil for receiving a
direct current signal, and the secondary coil is a coil which does not receive the
direct current signal; the primary coil and the secondary coil are isolated from each other and are arranged in a staggered mode through
metal wires. The coil width of the primary coil is greater than the coil width of the secondary coil. The coil width of the primary coil is set to be larger than the coil width of the secondary coil, so that the overall area is not obviously increased on the basis of ensuring a high quality factor and reducing
signal transmission loss, and
miniaturization design of a
chip is facilitated.