Is there any application to convert a gif file to txt file in linux?

  • 2
    And what would you want to see in that text file? A gif is not text. A gif is an image. If you want to see the text open it with a hex editor and it will show text in base 16.
    – Rinzwind
    Commented Jul 9, 2018 at 18:33
  • 5
    Please clarify - do you have an image of text that you wish to convert using OCR - or a general image that you want to display as ASCII-art? or something else? Commented Jul 9, 2018 at 18:35
  • 1
    It's an old thread but might this one help? askubuntu.com/questions/59389/…
    – graham
    Commented Jul 9, 2018 at 19:03
  • Actually I have a .gif file that contains some text and I want to convert that text to a .txt file
    – Badusha k
    Commented Jul 10, 2018 at 9:27
  • Could you please edit your post when you want to clarify something or add information? It’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks. Commented Jul 10, 2018 at 9:33

1 Answer 1


I think you are looking for gif2txt This GitHub project appears to be able to convert even multi-image gifs to ASCII art. Here's an example source image:


and example output:



Not the answer you're looking for? Browse other questions tagged .