Formatting and code conversion occurs in the Presentation layer of the OSI model and the Application layer of the TCP/IP stack.Formatting and code conversion are Presentation layer functions in the OSI model. The Application layer in TCP/IP maps to the top three layers of the OSI model. Solution Formatting and code conversion occurs in the Presentation layer of the OSI model and the Application layer of the TCP/IP stack.Formatting and code conversion are Presentation layer functions in the OSI model. The Application layer in TCP/IP maps to the top three layers of the OSI model..