Kevin Glancy, 45, was employed to look after children and families in the social work department at Edinburgh City Council, but in his free time he was surfing the net for pornographic pictures and videos of young boys.
He was caught after police, acting on a tip-off, searched his home in March and seized two computers and a laptop. They were examined and found to contain 239 images of children aged between eight and 14, mostly boys, being abused.
Thirty of the images showed the most severe end of the child abuse scale, level five. He has been suspended from work since and has now been placed on the sex offenders' register.
Glancy pleaded guilty at Edinburgh Sheriff Court yesterday to possessing indecent photographs or pseudo-photographs of children at his home on March 2. He will be sentenced next month.