These views help you see the response from a server in different ways. They make it easier to understand what the server sent back.
0
0
Pretty, raw, and preview views in Postman
Introduction
When you want to read a JSON response in a clean, easy-to-read format.
When you need to see the exact response text without any formatting.
When you want to view how the response looks as a webpage or image.
When debugging an API to check if the response data is correct.
When sharing response details with a teammate who prefers a certain view.
Syntax
Postman
In Postman, after sending a request, select one of these tabs in the response section:
- Pretty
- Raw
- PreviewPretty formats JSON, XML, or HTML nicely with colors and indentation.
Raw shows the response exactly as received, without any formatting.
Examples
This shows JSON with colors and indentation for easy reading.
Postman
Pretty view selected
{
"name": "Alice",
"age": 30
}This shows the exact text response without spaces or colors.
Postman
Raw view selected
{"name":"Alice","age":30}This renders the HTML response as a webpage preview.
Postman
Preview view selected <html><body><h1>Hello</h1></body></html>
Sample Program
This example shows how to switch between views to understand the API response better.
Postman
1. Open Postman. 2. Send a GET request to https://jsonplaceholder.typicode.com/users/1 3. Look at the response section. 4. Click on the 'Pretty' tab to see formatted JSON. 5. Click on the 'Raw' tab to see the exact response text. 6. Click on the 'Preview' tab to see how the response would look rendered (if HTML).
OutputSuccess
Important Notes
Pretty view is best for reading and understanding structured data like JSON or XML.
Raw view helps when you want to copy the exact response or check headers and formatting.
Preview view is useful for HTML or image responses to see how they appear in a browser.
Summary
Pretty, raw, and preview views show API responses in different ways.
Use Pretty for easy reading, Raw for exact text, and Preview for rendered content.
Switching views helps you understand and debug API responses better.