TEXT2IMAGE : Convert an ASCII text file to image

Text to image conversion.

You are now following this Submission

This code converts any ASCII text file (notepad, MATLAB-m files, etc) into images.

Screen shot is the image being converted from a notepad file that had the story - Christmas Carol.

Cite As

Divakar Roy (2026). TEXT2IMAGE : Convert an ASCII text file to image (https://www.mathworks.com/matlabcentral/fileexchange/7952-text2image-convert-an-ascii-text-file-to-image), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.0.0

Good speed-up after pre-allocation.

1.3.0.0

Rar file is replaced by zip file.

1.1.0.0

90 % speed-up as a result of using mat files and removing loops.

1.0.0.0

new screenshot