> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/programming/cs_basics/data_representation/encoding-and-formats/encoding_decoding.md).

# Encoding\_Decoding

{% hint style="info" %}
인코딩(Encoding)은 데이터를 특정한 형식으로 변환하는 것을 말합니다.

* 데이터의 크기를 줄이거나, 컴퓨터가 이해하기 쉽게 변환할 때 사용합니다.

* 인코딩된 데이터는 디코딩(Decoding)하여 원래 값을 얻을 수 있습니다.
  {% endhint %}

* 인코딩은 암호화와 유사하지만 목적이 다릅니다. 암호화는 기밀성을 목적으로 하며 비밀키가 있어야 원문을 복구할 수 있는 반면, 인코딩은 표준화된 방식으로 누구나 디코딩하여 원문을 구할 수 있다는 점이 다릅니다.

* 실생활에서 볼 수 있는 인코딩의 예시로는 압축이 있습니다.

* 어떤 인코딩된 데이터의 생김새를 보고 인코딩 방식을 유추하여 직접 디코딩해서 단서를 얻어야 하는 경우도 있습니다.

* 이를 위해 자주 쓰이는 인코딩 방식과 각각의 형태를 알고 있으면 좋습니다.

### 관련 페이지

* [아스키 코드](broken://pages/1504f0da52b38e834cc79f495e9327e0bad323c8)
* [유니코드](broken://pages/0bef655cdbaeb07aa3d9499cb1a2ce928cf05e53)
* [URL](file:///0903665/web/URL.md) 인코딩 (퍼센트 인코딩)
* [Base64](broken://pages/4857556c2e01264c0c9d977db4152291b73f6b53) 인코딩

### 인코딩 도구

인코딩, 디코딩을 위한 도구는 매우 다양합니다. 문자열을 특정 형식으로 인코딩·디코딩할 수 있는 몇 가지 도구를 소개합니다.

* <https://tools.dreamhack.games/cyberchef>
* <https://emn178.github.io/online-tools/base64\\_encode.html>
* <https://encoding.tools/>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://krjaeh0.gitbook.io/j-log/programming/cs_basics/data_representation/encoding-and-formats/encoding_decoding.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
