<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/decode-hex-on-linux-jtb9xuhcs" -->

---
title: Decode Hex on Linux | daily.dev
description: Learn how to easily encode and decode data in hexadecimal on the Linux command line using the xxd utility. The process involves piping standard input into xxd...
canonical: https://daily.dev/posts/decode-hex-on-linux-jtb9xuhcs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Decode Hex on Linux | daily.dev
og:description: Learn how to easily encode and decode data in hexadecimal on the Linux command line using the xxd utility. The process involves piping standard input into xxd...
og:url: https://daily.dev/posts/decode-hex-on-linux-jtb9xuhcs
og:image: https://api.daily.dev/og/posts/jtb9XUHCS.png
og:image:alt: Decode Hex on Linux
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Decode Hex on Linux

**[John Hammond](https://daily.dev/sources/johnhammond)** · 1 min read · 0 upvotes · 0 comments

## Summary

Learn how to easily encode and decode data in hexadecimal on the Linux command line using the xxd utility. The process involves piping standard input into xxd and using various flags like '-p' for printing and '-r -p' for reversing and decoding hexadecimal strings.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=9MSGQuXLbj0>

---

Tags: [#linux](https://daily.dev/tags/linux), [#cli](https://daily.dev/tags/cli)

[View this post on daily.dev](https://daily.dev/posts/decode-hex-on-linux-jtb9xuhcs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Decode Hex on Linux","url":"https://daily.dev/posts/decode-hex-on-linux-jtb9xuhcs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/decode-hex-on-linux-jtb9xuhcs"},"datePublished":"2024-10-19T18:41:28.742Z","dateModified":"2024-10-19T18:42:14.094Z","description":"Learn how to easily encode and decode data in hexadecimal on the Linux command line using the xxd utility. The process involves piping standard input into xxd...","image":"https://i.ytimg.com/vi/9MSGQuXLbj0/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/9MSGQuXLbj0/sddefault.jpg","isAccessibleForFree":true,"articleSection":"John Hammond","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"John Hammond","logo":"https://media.daily.dev/image/upload/s--Oh7b_KW---/f_auto/v1729363281/logos/johnhammond","url":"https://daily.dev/sources/johnhammond"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/decode-hex-on-linux-jtb9xuhcs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"linux,cli","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"Decode Hex on Linux","description":"Learn how to easily encode and decode data in hexadecimal on the Linux command line using the xxd utility. The process involves piping standard input into xxd...","thumbnailUrl":"https://i.ytimg.com/vi/9MSGQuXLbj0/sddefault.jpg","uploadDate":"2024-10-19T18:41:28.742Z","duration":"PT1M","url":"https://api.daily.dev/r/jtb9XUHCS","embedUrl":"https://www.youtube.com/embed/9MSGQuXLbj0"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"John Hammond","item":"https://daily.dev/sources/johnhammond"},{"@type":"ListItem","position":3,"name":"Decode Hex on Linux"}]}
```

