i have url field in my post due to some reasons i want to convert my url field into file field without losing url field values. is there any way to do this?
No. A file field stores the post ID of an attachment that is uploaded to the media library. A URL field stores a URL.
You would need to create a new field.