Highly selective Indirect anodic fluorination of organic compounds was successfully carried out for the first time by using a task-specific ionic liquid of iodoarene as a mediator in ionic liquid hydrogen fluoride salts.